Skip to content

Pull from Revit basics

Pawel Baran edited this page Jun 26, 2020 · 22 revisions

Introduction

Pulling elements from Revit to BHoM means extracting them from the Revit model combined with converting them to BHoM. In order to perform that action, the adapter needs to be set up correctly first. Once this is done, the user needs to specify two basic Pull inputs:

  • Request (which Revit elements are meant to be pulled?)
  • Action config (settings of this particular action - optional, if not specified, default values are used)

Once the adapter and inputs are ready, the Pull action needs to be activated - in visual programming environment this is done by setting its active property to true.

Request

Requests are listed and explained in requests and filtering section.

Action config

Pull action config is represented by RevitPullConfig and allows to specify the following settings:

  • Discipline - discipline, in which the user works (Physical - default, Structural, Building Environments, Architecture) - this determines types of BHoM objects, to which the requested Revit elements are converted - more on that subject can be found in Revit BHoM conversion
  • IncludeClosedWorksets - if true, Revit elements from closed worksets will be pulled (default is false)
  • GeometryConfig - settings defining the geometrical representation (the actual geometrical object representing the element in Revit) to be pulled (by default nothing) - more information available in Pull of Geometry and Representation section
  • RepresentationConfig - settings defining the mesh representation to be pulled (by default nothing) - more information available in Pull of Geometry and Representation section
  • IncludeNonVisible - if PullEdges is true and this is true, invisible edges of Revit elements will be pulled too (default is false)

If RevitPullConfig is left empty, default values will be used.

Details

Code mechanics of the Pull adapter action is explained in Pull from Revit details section.

Clone this wiki locally