Skip to main content

IFCGeometry

Nodes for extracting geometry from IFC elements and converting them to Dynamo geometry objects.

GetElementGeometry

Extracts geometry from IFC elements and converts them to Dynamo meshes. Uses pre-cached geometry for optimal performance.

Inputs:

ParameterTypeDescription
ifcModelIFCModelThe loaded IFC Model
globalIdsList of stringList of Global Unique IDs (GUIDs) of the elements

Output:

TypeDescription
List of MeshDynamo Mesh geometry objects. Null entries indicate elements where geometry is not available.

GetRepresentationGeometry

Extracts geometry from a specific representation of IFC elements.

Inputs:

ParameterTypeDescription
ifcModelIFCModelThe loaded IFC Model
globalIdsList of stringList of Global Unique IDs (GUIDs) of the elements
representationIdentifierstringThe representation identifier to extract (e.g., "Body", "Axis", "FootPrint"). If empty, extracts Body representation or all representations if Body is not found.

Output:

TypeDescription
List of MeshDynamo Mesh geometry objects. Null entries indicate elements where geometry extraction failed.

Note: Only Body representation uses the pre-built cache. Other representations are extracted on-demand. Use IFCQuery.GetElementRepresentations to find available representation identifiers.


GetAllRepresentationGeometries

Extracts geometry from all representations of IFC elements as separate meshes.

Inputs:

ParameterTypeDescription
ifcModelIFCModelThe loaded IFC Model
globalIdsList of stringList of Global Unique IDs (GUIDs) of the elements

Output:

TypeDescription
Nested List of MeshOne list per element containing meshes for each representation

GetElementBoundingBox

Returns the Axis-Aligned Bounding Box of elements as Dynamo Solids. Uses pre-cached bounding boxes for optimal performance.

Inputs:

ParameterTypeDescription
ifcModelIFCModelThe loaded IFC Model
globalIdsList of stringList of Global Unique IDs (GUIDs) of the elements

Output:

TypeDescription
List of CuboidDynamo Cuboids representing the bounding boxes in world coordinates. Null entries indicate elements without bounding boxes.

IFC Representation Types

IFC elements can have multiple geometric representations:

IdentifierDescription
BodyThe main 3D geometry of the element
AxisThe axis or centerline (often for linear elements like walls, beams)
FootPrintThe 2D footprint outline
BoxA simple bounding box representation
Annotation2D annotation geometry
ProfileThe profile shape

Performance Tips

  • Batch requests by passing multiple GlobalIds at once rather than calling the node multiple times
  • Check for nulls in the output list as some elements may not have extractable geometry
  • Use GetElementBoundingBox for quick spatial analysis when full mesh detail is not needed