@RDAOU wrote:
@esatis wrote:
I can't find any documentation on that. The way I see it: ''Material'' is the System Family, then I create these different Materials, which are Material Family Types. When I apply that Material Family Type "Red Paint" to surface, I create instance of that Type, as with any other Family Type.
@esatis
Well, one can always wish that materials were families.
Lets assume you’re theory or interpretation is correct. Where in the documentation you’ve read does it state that materials are families? And if they were families or objects, wouldn’t it be logical to edit them in the Family Editor rather than the Material Editor? Therefore, even if the documentation didn’t explicitly state that they are not families (which, in fact, it does), logic alone makes it clear that they are not.
For reference, you can check the Revit API documentation. Materials do not fall under the family category; they are handled as entirely separate elements within a different class hierarchy.
- Material: Autodesk.Revit.DB.Material
- Family: Autodesk.Revit.DB.Family
Good luck with your quest.
I am talking about System Families, like Walls.
System families (e.g., walls, floors, ducts)
Type: Autodesk.Revit.DB.WallType, FloorType, …
Instance: Autodesk.Revit.DB.Wall, Floor, …
Loadable (custom) families
Family “container”: Autodesk.Revit.DB.Family (one per .rfa)
Type: Autodesk.Revit.DB.FamilySymbol (a.k.a. “Type”)
Instance: Autodesk.Revit.DB.FamilyInstance
Materials
Autodesk.Revit.DB.Material is neither instance nor type—it’s just a definition that elements reference.
And every class above are subclasses of Autodesk.Revit.DB.Element
There is no documentation for Material that states either - is it a system family or not, that is just my interpretation of what seems logical to me.
So when I see instance Autodesk.Revit.DB.Wall I think that Autodesk.Revit.DB.Material should also be instance. It just seems that there is no Autodesk.Revit.DB.MaterialType
Why is it not in Family Type Editor and not? Does not make any sense, but a lot of things does not make sense in Revit UI ¯\_(ツ)_/¯
Thanks for help and suggestions.