Splitting Columns Deletes the Last Column

I wrote a script that copies a selected column to each level and then deletes the original one that spans multiple levels.For some reason, when I select a new column to “split” it deletes all the columns that the script just placed from the previous run. Does anyone know what could be causing this?
Split A Column by floors.dyn (67.8 KB)

Run1:Splits the column into four columns

Run2: Splits the next column I select and splits it. It also deletes the four columns created on the previous run though.

Yes - Dynamo recalculates the script as if the previous element hadn’t been run.

You need to either:

  1. Run this via dynamo player for each column you want to split
  2. Close and re-open the graph between runs
  3. Set it up to feed all columns as a list so you only need to run it once.
  4. Set it up to run with a list via dynamo player.


Is there any way to just have it evaluate the newly selected element?
I have a lot of different columns all with their own top and base levels, offsets, rotations, etc. so setting up a list will be too complex I think.

It looks like it might take a list if you set a few nodes to lacing longest. Try running it on a selection of two columns and see what happens.