Split corridor baseline in multiple regions

Hi, is there a way to split corridor baseline into multiple regions using dynamo? I have tried to use AddRegion node from Civil3d toolkit but it works only for the first station from the list. Thank you in advance!

1 Like

Hi @ion.bobeico,

Are you trying to split regions that already exist or are you starting with an empty baseline and adding new regions?

1 Like

Hi @zachri.jensen , Iā€™m trying to add new region to an empty baseline.

@zachri.jensen Has anyone made any progress on this node? The same thing is happening to me where I have a model with a single baseline and one region. When I try to split the region with 100 plus stations it only splits the model with the first station in the list.


Is this what your looking for? this one works for me to split a region, only I dont know how to make it easy for 100+ regions.

Try this, pass a list of stations in reversed order.

2 Likes

How can we use this to split multiple baselines if we have a dictionary with baseline names as Keys and the list of respective splitting stations as values.

Any sort of help will be much appreciated.

Hi Paolo,

Could you please explain the concept behind giving the stations in reverse order?

Thanks

Hi, as we have seen that the node Corridorextension.splitregion splits only the first region at the time. Now, when we are wiring a list of station in correct order, it split the first region & when input the second station of the list, the second station does not fall in the first region, so it ends up splitting using the first station only. Now, if we wire list of station in reverse order, it split the last station first, then tries to split using the second last station, now the second last station does within the first region, so it splits again and it goes on. Hope this helps.