ESRI Layers from ArcGIS moved to exising drawing layers?

I see a couple similar topics relating to moving multiple layers and have read a handful different options but I am very new to Dynamo so I don’t know which would work best for my instance. We use ArcGIS online and are using the ArcGIS plugin to pull layers using the project area function. Once we pull data from our online data base every layer comes in with “ESRI_” at the beginning of the name and then followed by whatever naming convention the other departments use to label their assets like sanitary and storm mains and manholes. In our department we have a civil 3d drawing template that simplifies things where we put all lines, arcs and circles just simple on SANITARY-SEWER layer. I would like to run a function within Dynamo to move all newly imported ArcGIS layers onto the proper layer they are matched up to within our template. Is this possible?

It’s doable in Dynamo- but the easiest & fastest method is probably an old-fashioned AutoCAD script

like a LISP Routine?

much simpler.

a script is just a text file (with a .scr extension) that contains a bunch of commands- in your case, the LAYER command. A space or new line means enter/return

-LAYER

R layer1-old layer1-new

R layer2-old layer2-new

In AutoCAD/C3D, you load a script with the SCRIPT command, or just drag & drop the .scr file into into the active drawing window or command line area

If you’ve got multiple drawings to process, you would combine it with command line switches:

acad.exe "<path>\Drawing1.dwg" /b "<path\YourScript.scr"

acad.exe "<path>\Drawing2.dwg" /b "<path\YourScript.scr"

Typically, Excel is used to produce scripts

here is a screen shot of the .scr file I tried using, doesnt work

what’s the error ?

try typing into the command line to get the sequence & syntax of commands right first- then copy the relevant lines into your script.

It looks like it should be something like:

-LAYMRG^N^OldLayerName1^OldLayerName2^^N^DestinationLayerName^Y^

I’ve replaced spaces with caret character to make it easiest to read- e.g you might need a double space (enter) after the last source layer. You probably don’t need quotes around the layer names