GetHostObjects Method


Exporter IFC Get Host Objects Method

Returns a collection containing the host object handles in the document.

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<IDictionary<ElementId, IFCAnyHandle>> GetHostObjects()

Return Value

IList IDictionary ElementId , IFCAnyHandle
The collection of host objects.
Remarks
Host object handles is currently collected by RegisterSpaceBoundingElementHandle and exporting internal element and cached in the ExporterIFC object. This method returns the cached information which is needed to create wall connectivity objects.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →