Get2DContextHandle Method


Exporter IFC Get 2DContext Handle Method

Note: This API is now obsolete.

Obtains the IfcRepresentationContext handle to be used for 2D entities (Annotations).

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
[ObsoleteAttribute("This method is deprecated as of Revit 2025.  Use the .NET cache instead.")]
public IFCAnyHandle Get2DContextHandle()

Return Value

IFCAnyHandle
The IfcRepresentationContext.
Remarks
The context handle is automatically applied with a 1:100 scale.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →