Share

ExporterIFC.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: 25.3.0.0 (25.3.0.0)

Syntax

C#

public ElementId GetMaterialIdForCurrentExportState()

Return Value

ElementId
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

Reference

Was this information helpful?