Creating a layer using AutoCad Script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am using AutoCAD Electrical 2020. I have over 400 drawings in a project.
I have run a script (.src) to add a block into all my drawings, however, when I looked into the block. It was added in a layer that I do not want it to be.
I would like to create an independent layer for it and the move this block to this layer so I can turn it on/off in a drawing as needed.
I would like to create an AutoCAD script for each task if possible or one script that perform both task.
Here has been my try to create the layer without success, when I run it, it created the layer but then stops running the script in the first drawing. Also, I am not sure what script to use to change this block to the new layer.
Thanks in advance.
lc.src
/------------------------------------------------------------------------------------------------/
_-layer M
HardwareConfig C 4 HardwareConfig L Continuous HardwareConfig LW Default
HardwareConfig Plot Plot HardwareConfig