Revit 2025.3 API
Export |
Retrieves the GUID representing this element in DWF and IFC export.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static Guid GetExportId( Document document, ElementId elementId )
Public Shared Function GetExportId ( document As Document, elementId As ElementId ) As Guid
public: static Guid GetExportId( Document^ document, ElementId^ elementId )
static member GetExportId : document : Document * elementId : ElementId -> Guid
Parameters
Return Value
GuidThe value of the GUID representing the element in the export context.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

This id is used in the contents of DWF export and IFC export and it should be used
only when cross-referencing to the contents of these export formats.
When storing Ids that will need to be mapped back to elements in future sessions,
UniqueId must be used.
See Also