Revit 2025.3 API
Fabrication |
Gets the material identifier by its GUID.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.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