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: 

Need a fast way to get the footprint of elements

1 REPLY 1
Reply
Message 1 of 2
MattKincaid
474 Views, 1 Reply

Need a fast way to get the footprint of elements

MattKincaid
Advocate
Advocate

I need a way to get the footprint of an element.  I have some code that does this by extracting the solid geometry of the element, then grabs the faces of the solid and performs transforms on the faces to project them onto the XY plane.  Then use a third party library to merge the resulting faces into a single face and use the boundary of that face as the footprint.  This works well, but can perform slowly if there is a large number of faces.

 

Can anyone think of a faster way?  Bonus points if it can flatten an element's geometry onto an arbitrary plane, not just the XY plane.

 

Thanks!

0 Likes

Need a fast way to get the footprint of elements

I need a way to get the footprint of an element.  I have some code that does this by extracting the solid geometry of the element, then grabs the faces of the solid and performs transforms on the faces to project them onto the XY plane.  Then use a third party library to merge the resulting faces into a single face and use the boundary of that face as the footprint.  This works well, but can perform slowly if there is a large number of faces.

 

Can anyone think of a faster way?  Bonus points if it can flatten an element's geometry onto an arbitrary plane, not just the XY plane.

 

Thanks!

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

jeremytammik
Autodesk
Autodesk

Share you code. It sounds interesting. 

 

Here is mine:

 

https://github.com/jeremytammik/ElementOutline

 

I can't think of a better or more efficient way than the approach you describe.

 

Cheers,

 

Jeremy

 



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

0 Likes

Share you code. It sounds interesting. 

 

Here is mine:

 

https://github.com/jeremytammik/ElementOutline

 

I can't think of a better or more efficient way than the approach you describe.

 

Cheers,

 

Jeremy

 



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