Hi,
I would like to get the outer boundary curves of Doors and Windows through Revit API. I think there is no direct API method available to retrieve it.
In Opening class there is a property called Boundary Curves to retrieve the boundaries of an opening object. I need a method or workaround to achieve this.
Regards,
sangsen
Solved! Go to Solution.
Solved by Revitalizer. Go to Solution.
Dear Sangsen,
Take a look at today's discussion on The Building Coder:
http://thebuildingcoder.typepad.com/blog/2015/01/getting-the-wall-elevation-profile.html
Cheers,
Jeremy
Dear Jeremy,
Thanks for your reply. I am trying to get Windows and Doors boundary curves not wall profile curves. I can use your post code and get the closed inner boundaries. But when we have a door and a window next to each other then wall profile have only one L Shaped inner boundary. I need individual boundaries separately.
Thank you.
Hi sangsen,
to work around the L problem, what about deleting all but your needed opening from a wall, in a temporary transaction ?
After removing all but this one, the wall's geometry will adjust, thus allowing you to retrieve the curve loop of your opening (using today TBS's blog posting).
This mechanism of a temporary transaction has been used by TBC several times.
http://thebuildingcoder.typepad.com/blog/2011/10/retrieving-detailed-wall-layer-geometry.html
Best regards,
Revitalizer
Dear Sangsen,
Revitalizer's suggestion is fine, and there are lots of other approaches as well.
You could simply grab the door or window family instance geometry, project everything onto a surface parallell to the wall exterior, and determine the outer loop, e.g. using a polygon Boolean library.
You could use the extrusion analyser provided by the Revit API to do the projection and Boolean operation for you.
That and many other approaches are all described by The Building Coder.
Search the Internet.
Use Google, if you like, or duckduckgo, if you prefer not to have your data harvested and used.
Cheers,
Jeremy