GetMaterialIdForCurrentExportState Method


This gets the material id that is associated with the element in the current export state.

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2013

Syntax

C#
public ElementId GetMaterialIdForCurrentExportState()
Visual Basic
Public Function GetMaterialIdForCurrentExportState As ElementId
Visual C++
public:
ElementId^ GetMaterialIdForCurrentExportState()

Return Value

The material id.

Remarks

Even though there could be several materials associated with the element (set during PushExportState()), unless the element has support for IfcMaterialLayerSet, IFC output will include only this one.

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 →