Revit 2026 API
Fabrication |
Gets the material identifier by its GUID.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public int GetMaterialByGUID( Guid materialGUID )
Public Function GetMaterialByGUID ( materialGUID As Guid ) As Integer
public: int GetMaterialByGUID( Guid materialGUID )
member GetMaterialByGUID : materialGUID : Guid -> int
Parameters
- materialGUID Guid
- The material GUID.
Return Value
Int32The material identifier. Returns 0 if not found.
See Also