Which method is used for 'Export rooms, spaces and areas as polylines'?

Which method is used for 'Export rooms, spaces and areas as polylines'?

loren_routh
Enthusiast Enthusiast
1,404 Views
6 Replies
Message 1 of 7

Which method is used for 'Export rooms, spaces and areas as polylines'?

loren_routh
Enthusiast
Enthusiast

I am hoping to understand exactly how the .DWG export feature works when you check the box for 'Export rooms, spaces and areas as polylines'.

lorenrouth_0-1699052591989.png

 

In the Area Class, there is:

  • GetBoundarySegments(), which returns an array of 'segments'. 
  • The Geometry property, which returns a solid object and also curves. 

It is my understanding that these are separate from AreaBoundaryLines, which can extend beyond the Area, overlap, etc., and does not reflect the true geometry of the Area.

 

None of these are polylines.  Is this something that isn't exposed (yet), or some other mechanism?

 

Why do I ask?  We have been having issues exporting AreaPlans where not every Area polyline comes through in the CAD drawing.  Strangely, the same AreaPlan will export fine in Revit 2021, but have missing Area polylines (with only the tag showing) in Revit 2023.   We use AreaPlans that consist solely of AreaBoundary Lines, no Walls at all.  This is on purpose (and another conversation).  Additionally, these exports contain Line geometry that I assume are the AreaBoundary model Lines.  They are not helpful and have to be removed.  These exports are used in an external process and must be either polylines or regions in CAD.  

 

Also, one of my goals is to use Area Gross Building geometry to create Generic Model extrusions that mimic the mass of the building envelope (by level).  For moderately complicated 2D geometry, I have yet to find a way to convert Areas (or Boundaries) into closed PolyCurves, Surfaces, or anything that can reliably be turned into a Generic Model Family object.

 

Could anyone give me some insight into this?

 

Thanks,

Loren

 

 

 

0 Likes
Accepted solutions (1)
1,405 Views
6 Replies
Replies (6)
Message 2 of 7

jeremy_tammik
Alumni
Alumni
Accepted solution

Use the Room or Space GetBoundarySegments method to retrieve the curve segment data and export that as you please::

  

  

 

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 7

loren_routh
Enthusiast
Enthusiast
Yes, GetBoundarySegments does work. It gets the boundary segments. To get a closed polyline/polycurve that can be exported as .dwg or used in an extrusion, that is another matter. I will do a separate post for that. Thanks for clearing things up a bit.
0 Likes
Message 4 of 7

cmuldoonZMYQT
Community Visitor
Community Visitor

Did you ever make that post about getting a .dwg of polylines?

0 Likes
Message 6 of 7

cmuldoonZMYQT
Community Visitor
Community Visitor

Thank you.

0 Likes
Message 7 of 7

loren_routh
Enthusiast
Enthusiast
0 Likes