Revit 2026 API
Fabrication |
Gets material name from its identifier.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public string GetMaterialName( int materialId )
Public Function GetMaterialName ( materialId As Integer ) As String
public: String^ GetMaterialName( int materialId )
member GetMaterialName : materialId : int -> string
Parameters
- materialId Int32
- The material identifier.
Return Value
StringThe material name without the group.
See Also