Create new model elements and move the ones created from previous run of the script

I’m trying to make dynamo script to create new model elements and move the ones created from previous run of the script. I’ve been suggested by one of the forum members to delete previous elements and create them again as dynamo tries to move previously created elements when some input parameters are changed e.g. location of walls. That hasn’t worked either nor moving them and creating new elements in their place. I’ve tried moving them following a script posted (Moving Walls - #5 by Kulkul)
![Dynamo-move-elements|690x339]

But for me it’s not working. Please have a look. Thanks.

Hi
You can use OOTB don’t need package

Your script instead CurvesEndpoint let’s use Curves

image

1 Like

@manhgt214 thank you very much. This worked.
Do you also know possibly about the other case where if I change the points from which some internal wall is drawn and then move those points and run the script again, there are errors and the walls aren’t drawn new? I asked about this here Creating/Changing simple house layout works but with errors