kma10
Mechanical
- Dec 19, 2013
- 1
Hi all,
I am trying to write a script to automate the process of exporting the many layers (over 20) in my drawings to separate, single-layer drawing files, and I can't figure out how to use ONLY the command line to select all the entities in a single layer.
I've tried to use SMARTSELECT, but there's no command line variant. It still requires mouse clicking. I haven't been able to figure out SELECTIONFILTER, but I am under the impression that it requires just as much clicking to create individual filters for individual layers.
The following script gets me to the stage of selecting entities to export, but I can't find a series of in-line commands that will perform what SMARTSELECT can do. Any advice or leads? Thanks!
EXPORTDRAWING
layer1.dxf
0,0
'smartselect
I am trying to write a script to automate the process of exporting the many layers (over 20) in my drawings to separate, single-layer drawing files, and I can't figure out how to use ONLY the command line to select all the entities in a single layer.
I've tried to use SMARTSELECT, but there's no command line variant. It still requires mouse clicking. I haven't been able to figure out SELECTIONFILTER, but I am under the impression that it requires just as much clicking to create individual filters for individual layers.
The following script gets me to the stage of selecting entities to export, but I can't find a series of in-line commands that will perform what SMARTSELECT can do. Any advice or leads? Thanks!
EXPORTDRAWING
layer1.dxf
0,0
'smartselect