Create Curtan GridLine and remove some of the segments

Hi, guys! I am trying to create a script for automatic placement of gridline segments where a door would be placed later on. I tried doing that by creating the complete gridline and then removing segments beyond specified height. The problem is that CurtainGridLine.RemoveSegment from Rhythm package would not work.

I think it could be related to the way I obtain the CurtainGrid from the Wall. I noticed that by using custom nodes for that purpose, I would get for example “WombatDynamo.CurtainGrid” element, or another one, depending on the package used, but none of them seems to work in my case.

I am using a selection of detail lines to determine grids location.

This is how the script looks at the moment:

You can also find it attatched. Here is a link to download the file I am using for testing:


Home.dyn (42.3 KB)