Rhino.inside Turning segments of curtainwall On-Off

Here I was trying to turn off portions of the horizontal gridlines for a slanted and profiled curtainwall.

Current problem I am facing is Rhino.inside / Revit somehow doesn’t turn off grids that have their midpoint outside of the current profile. As you see in the image, the only ones that should be kept are those that are highlighted, but on the side , there are some lines that are not turned off.

I tried turning all those with midpoint outside of the profile off , and it just does nothing . Wonder if anyone had face this problem before , and if its just a Revit API problem .

Hi 遲了悔改,

Modifying those segments can be tricky. I think we’ll need more details to be able to help. Can you provide a small example of the condition?

FACADE IMPORT.rvt (692 KB)

FACADE IMPORT.gh (19.0 KB)

Hi Japhy,

Here is the portion of the script that I have more issues with. I saved the slanted curtainwall with both vertical and horizontal grids, and the script toggles the segments based on the removed segment. After you run the horizontal grid toggle, you will see where those small lines are not turned off .

There are errors in your data management, the trees aren’t lining up properly.

When i get some time i’ll try and sort it out (most likely tomorrow)