- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am a co-op programming student at an architecture firm and I am currently working on an add-in that creates shadows that are filled regions. The way the shadow is created is by using the ExtrusionAnalyzer.Create() method, which takes the solid, a 0,0,0 plane, and the sun ray vector that is taken from the sun settings (Credits go to the very kind Jeremy Tammik from his blog post here: https://thebuildingcoder.typepad.com/blog/2013/06/sun-direction-shadow-calculation-and-wizard-update...)
I am also using the clipper library to do boolean operations such as subtracting a buildings' footprint from the shadow that it casts, and outlining intersecting shadows from 2 buildings.
However my main problem comes when I am creating my Filled Regions. It seems that it will only ever take 1 list of continuous loops, which means I am not able to create holes in my filled regions, nor am I able to have 2 or more sets of boundaries for the FilledRegion.Create() method, since the way it seems that clipper handles the boolean operations only makes it return 1 list of continuous curves that are connected. An example can be seen below, with the circled area being when I want a hole to be:
So to reiterate my question: Is it possible to create a filled region with holes or multiple separated boundaries programmatically?
I am using Revit 2018.3 and the Revit 2018.2 SDK
Thank you for reading through my post.
Solved! Go to Solution.