Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for exporting layers to separate drawings

Status
Not open for further replies.

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor