Here’s a fun one for you.
One of my engineers wants to create daylight energy save zones, which essentially means I need to create lines (or ref planes) that offset from a wall. The distance of that offset needs to equal the height of the windows (=head height - sill height).
I managed to write a script that finds all windows, and offset a curve (!!) based on the height of the windows. But I have two problems:
- In the preview, the offset looks the color I want it to appear (red), but in Revit the line color is blue. Any way to fix that?
- You can see that some of the offsets go to the exterior of the walls, rather than the interior. I need the offset always to go towards the interior. I know this is probably going to involve vectors, but how do I always get vectors to point towards the interior for every project, no just this one?
Any help would be appreciated for either question. Thanks!!
Window Experiment 2.dyn (44.8 KB)