Skip to content

Pull from Revit basics

Pawel Baran edited this page Apr 3, 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 (setting of this particular action- optional, if not specified, default values are used)

Once the request and action config 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) - more details on that subject can be found in Revit <=> BHoM conversion
  • IncludeClosedWorksets - if true, Revit elements from closed worksets will be pulled (default is false)
  • PullEdges - if true, edges of Revit elements will be pulled and placed in pulled BHoM object's CustomData under key Revit_edges (default is false)
  • IncludeNonVisible - if PullEdges is true and this is true, invisible edges of Revit elements will be pulled too (default is false)

Details

Code mechanics of the Pull adapter action is explained in Pull Details section.

Clone this wiki locally