PDA

View Full Version : 2004---filterselections via command line only



ajs
29th Oct 2007, 02:25 pm
Hello,

Newbie here---I'm trying to write a script that performs selection using one of these four combinations:

1) Line and color

2) Text and color

3) Polyline and color

4) Text rotation

(I can get away without text rotation but not the first three)

The 'filter command works fine for this but a script (in 2004 anyway) cannot navigate a dialog box.

Doe anyone have any ideas on how to structure a selection using the command line only?

I searched on the web and from what I can tell, in versions prior to 2000, there used to be alternate commands to bypass the dialog box.

Are there "legacy" commands that still work with 2004 that I could use and if so, where would I find them?

I am transferring to Autocad from another program and over the years I have developed many selection scripts and I tend to approach problems (especially 3rd party dxf import/export problems) by using automated selection

If it is possible to automate these type of selections LISP I'd be happy to take a crack at that.

This response from Autodesk however gives me pause:

Re: Navigate through a dialog box via Lisp
As far as I know, you can not drive a dialog box through LISP, so unless there is a Command: line equivalent or this is exposed in Active X [and therefore in VLSIP], you will need to use another customization language.

Thanks so much for looking at this for me: I am transferring to Autocad from another program and over the years I have developed many selection scripts and I tend to approach problems (especially 3rd party dxf import/export problems) by using automated selection so understanding this will really help move me along

---Tony

SLW210
29th Oct 2007, 03:40 pm
Put a - in front of the command to use the command line, such as..._-LAYER.

ajs
29th Oct 2007, 03:51 pm
Thank you for replying. I'm probably being dense, but I can't make the "-"l feature (ex: -Layer) type commands work with booleans.

For instance, if I wanted to do something simple like move all circles that were blue---I'm not sure how to do it via the command line:

Move

Select object


...at this point, what do I do at the command line to select a blue circle

Obviously I could use the 'FILTER command but that brings up a dialog box which I need to avoid.

---AJ

SLW210
29th Oct 2007, 04:04 pm
Sorry didn't catch the part about filter.

Hedgehog
29th Oct 2007, 04:10 pm
SSX... entirely command line... isolates most of the attributes of an entity... can be used transparently (ie 'ssx).

SLW210
29th Oct 2007, 04:50 pm
SSX... entirely command line... isolates most of the attributes of an entity... can be used transparently (ie 'ssx).

Works great Hedgehog.