MaterialId Property


Material Node Material Id Property

The Id of the element assocated with this material in the model.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ElementId MaterialId { get; }

Property Value

ElementId
Remarks
It is possible that no specific material is applied to a face, in which case the default material is used, and this property returns an InvalidElementId.
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 →