Column material bug?

Column material bug?

StruSoft_Iwona
Contributor Contributor
334 Views
1 Reply
Message 1 of 2

Column material bug?

StruSoft_Iwona
Contributor
Contributor

Hi!

I have this file. As I see on the GUI the column dont have material. But if I watch it through the API the column have material (the same as the floor).
If I erase the floor (or move it away from the column), the column's material gone too (null reference). Is this a bug or what?
MB.jpg

0 Likes
335 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Hi.

 

Thank you for your query.

 

I believe this behaviour is normal.

 

This is one of those very frequent cases where a good understanding of Revit from a user point of view helps tremendously to work more efficiently with the Revit API.

 

Revit provides a large number of possibilities to set the material of individual elements, and element material can probably be affected by joining with neighbouring elements:

 

http://thebuildingcoder.typepad.com/blog/2013/08/attributes-relationships-and-other-stuff.html#6

 

Here are some discussions in The Building Coder topic group on Element Colour and Material:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.24

 

You should also always consult the Revit API Developers Guide when exploring a new area, since it provides much more in-depth background information, e.g., in this case, Revit Geometric Elements > Material

 

http://help.autodesk.com/view/RVT/2017/ENU/?guid=GUID-C3F568EA-96D4-49F0-B74C-F4DADC00C3EC

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes