Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetTopFaces returns null objects

1 REPLY 1
Reply
Message 1 of 2
Anonymous
258 Views, 1 Reply

GetTopFaces returns null objects

Hi!

 

I have a roof element that displays some weird behavior: when I look up the top faces and then turn the references into GeometryObjects, some of the objects turn out null. I can't really understand what is causing this behavior, it seems to be one specific element, because when I create a new roof of the same type, the top faces turn out correctly.

Does anyone have an idea what could cause this? I could send over a Revit model containing an object that displays this behaviour, but the forum doesn't allow me to attach it.

 

Thanks,

Taavi

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Anonymous

This might be due to a weird editing history. Maybe the element was joined with others, or split apart into two or more, or other operations performed, which left some remnants of something pointing to some geometry sub-elements that no longer exist.

 



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report