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 .
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 .