Solid Material

Here is a simple question with a simple answer on materials and solids:

Question: Is there a way to retrieve the material of the solid geometry object of a Revit Element, like the door leaf of a door element?

Answer: No, I am not aware of any way that a material can be assigned to a solid.
The only representation of the solid in the graphical user interface is through its faces, and they can have materials assigned to them.
As far as I know, the solid itself has no such property.
The only way that I am aware of to

determine the material

of a solid is through the path Solid > Faces > FaceArray > Item > Face > MaterialElement.

Another short little note on a completely unrelated topic:

Clean Uninstall of Revit 2010

In case you ever have problems with the installation of Revit, the Autodesk Revit Architecture Services & Support area includes a page describing a method to achieve a

clean uninstall of Revit 2010 products
.


Comments

2 responses to “Solid Material”

  1. You might be able to – if you want to edit the family itself. If you’ve got the Family document open, you can access things like the material and subcategory at the solid level, which may give you something closer to what you want.
    I wouldn’t recommend it from a performance standpoint if you were querying across lots of families in the project. But on a limited family basis where you’re looking for something like a door leaf, it might make sense to do it that way – especially if the leaf itself is identifiable via subcategory.
    -Matt

  2. Dear Matt,
    Are you saying that it is possible to assign a material to a solid in the family editor?
    I do see interesting methods and properties such as GetMaterialArea, GetMaterialVolume and Materials on the GenericForm and its derived classes, which exist in the family context, but I do not see how the volume material can be queried in the project context?
    Cheers, Jeremy.

Leave a Reply to Matt MasonCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading