I have a script that makes room separation lines from a CAD layers lines.
It works great the first time, but on any subsequent runs of the script, it moves the room separation lines from the first run to the applied level for the second run, and adds the new lines.
I have tried:
Closing and reopening both revit and dynamo between runs.
Unloading other CAD links.
Closing all other views.
I am at a loss why this would be behaving this way.
I did change the inputs in the drop down to match the new level/link.
So, to illustrate, I run it for the Level 9 cad file, on level 9. Works. Running again for level 8, adds the lines for that level 8 link, at level 8, but also the level 9 lines.
1 is the original lines, which are being moved up to level 2, after running again, in player, on level 2. Different level, different views, different links.
Yes, So there is 1 cad file per floor, linked at the floors level. Lines marked 1 were placed on L1 after initial run of script.
Closing and reopening the script, closing or reopening dynamo or revit, or using player, and running again, result in lines in group 1 being moved to level 2 from level 1, and the lines for the level 2 link being created at level 2.
The links are intentionally not aligned for testing reasons.
Edit:
It makes it easier to tell if its still producing the above issue, for clarity.