Skip to content

Pull of Geometry and Representation

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

By default, Revit elements are pulled and converted to the BHoM objects as explained in Revit BHoM conversion. However, on top of that, it is possible to extract additional information about the actual geometry of an element in Revit, as well as its representation including colours. Instruction about that extra information to pull is passed to the adapter via GeometryConfig and RepresentationConfig properties of RevitPullConfig.

PullGeometryConfig object allows to set following geometry-related instructions:

  • PullEdges - if true, edges of elements will be pulled and stored under Revit_edges key in CustomData
  • PullSurfaces - if true, surfaces of elements will be pulled and stored under Revit_surfaces key in CustomData
  • PullMeshes - if true, meshed surfaces of elements will be pulled and stored under Revit_meshes key in CustomData
  • MeshDetailLevel - detail level of mesh to be pulled, correspondent to level of detail in Revit
  • IncludeNonVisible - invisible element parts will be pulled and passed to CustomData if true

PullRepresentationConfig specifies render mesh settings:

  • PullRenderMesh - if true, representation of elements will be pulled and stored under RenderMesh in CustomData
  • DetailLevel - detail level of representation, correspondent to level of detail in Revit
  • IncludeNonVisible - invisible element parts will be pulled and passed to CustomData if true
Clone this wiki locally