I have create a simple script that sorts window along a curve.
I am trying to write something that helps me pairs multiple set of windows to multiple set of curve.
For context, i have a 5 story building. However there is no systematic arrangement to the windows. I have been using the script to arrange window floor by floor. The goal is to assign all windows and all curve to the script and with minimal input from user, arrange the windows.
i have been trying to work along the line of having a iterative while loop which kept asking for user to
step 1) select the windows
step 2) select the corresponding curve
step 3) turn them (somehow into a set)
step 4) returns to step 1 until user exit the loop
Step 5) arrange the window.
Here is the script for reference.
any help is appreciated.
Hi Kim, thank you for your help! Your method is a lot better.
I have another problem of similar nature but couldn’t a way to apply the same “brep_closest_point” logic.
The other part of the script that essential measures the vertical distance of the shade above the windows. However, the script is only capable of measuring the vertical distance of 1 shade to multiple windows. I am to create a script that returns the vertical distance of different shades above the window. If there window does not have a shade above, return null or zero.
e.g.
Scenario 1) Red shade & orange windows: returns vertical distance of from the bottom of the window, to the bottom of the shade.
Scenario 2) Yellow window: has no shades above so return zero, or null, or something that demarcates that it has no shades