Selecting entities in a script can be a tricky thing. There are several ways to go about it.
1) If the entity is in the same location in every drawing, you can select it using screen coordinates. There are many different ways to go about this. The best thing to learn how to select objects is to initiate a command. "ERASE" for example. After typing ERASE, your prompt will be "Select objects:" If you type "?" at this point you will get:
Notice how some of the letters are CAPITALIZED? By typing the letter of the TYPE of selection you wish to use at this point will result in a new prompt... like "F" for FENCE, you will be asked for a "First fence point:", which you can provide coordinates to, then an ENDPOINT for the line, and then finally provide a single
to tell AutoCAD you are done entering points. To select entities by using "Fence" will result in all entities that touch the fenceline to be selected.
2) Use the SSX command to specify a selection set.
|Previous||Back to Hurricane for AutoCAD - FAQ||Next|