I have this line of code:
(setq transmitters (ssget "_W" pt1 pt2 (list (cons 0 "INSERT")(cons 66 1))))
Where pt1 and pt2 are points that I point to.
I would like to have autocad show a "window box" while i am going from pt1 and pt2, it would be nice to have the same feature ~~~>left to right only components completely in the box, and/or right to left any component that has a part within it.
Is there a variable or a specific line of code that will do this?
Solved! Go to Solution.
Note that the Window (W) ssget mode string is an automated selection method, i.e. the selection set is retrieved automatically based on the supplied parameters.
If you need to display a selection window, you can use a combination of the getpoint & getcorner functions when prompting the user for the two points defining the selection window.
Alternatively, you could call the ssget function without the mode string argument and the user can type "W" to opt for a Window selection when prompted.
.... you could call the ssget function without the mode string argument and the user can type "W" to opt for a Window selection when prompted.
Or they could get by without typing an option, and just pick in a blank area, and it will automatically go into either Window or Crossing mode [depending on which way they go from the first corner] as with regular editing-command selection.