Sample Code Revit Batch Processor 1.1.11 documentation
Gets all materials in a model.
Filter by class.
doc (_type_) – _description_
A filtered element collector of materials
Autodesk.Revit.DB.FilteredElementCollector
Gets a material element based on a material id.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
id (Autodesk.Revit.DB.ElementId) – The id of material to be returned.
A material if matching id was found. Otherwise nothing gets returned!
Autodesk.Revit.DB.Material
Gets a material name based on a material id.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
id (Autodesk.Revit.DB.ElementId) – Id of material of which the name is to be returned.
The material name if matching id was found or the default value: ‘<By Category>’
str