Code Red > AutoLISP (Vanilla / Visual)

Help for lisp (writing) beginner

(1/1)

ronjonp:
How do I make a filtered window selection using lisp. I already hade the dxf code for what i want filtered but it does not give me the option to select entities, it just makes a selection set.

(ssget "x"'((2 . "WID_VD_1,WID_VD_1_5,WID_VD_2,WID_VD_MV")))


Thanks,

Ron

SMadsen:
The "X" option in SSGET means "select all and then some" (look up SSGET in the help reference to see what "then some" means).

If you omit the selection method, the user is given control of how ents are selected:

(ssget '((2 . "WID_VD_1,WID_VD_1_5,WID_VD_2,WID_VD_MV")))

To force a window'ed selection you can use "W". If called without points, the user is asked where to select. If called with points you are in control and the user won't notice a thing.

ronjonp:
Thank you. Exactly what i was looking for.

Navigation

[0] Message Index

Go to full version