SSGET Examples
|
Function call
|
Effect
|
(setq pt1 '(0.0 0.0 0.0)
pt2 '(5.0 5.0 0.0)
pt3 '(4.0 1.0 0.0)
pt4 '(2.0 6.0 0.0))
|
Sets pt1, pt2, pt3, and pt4 to point values
|
(setq ss1 (ssget))
|
Asks the user for a general object selection and places those items in a selection set
|
(setq ss1 (ssget "P"))
|
Creates a selection set from the most recently created selection set
|
(setq ss1 (ssget "L"))
|
Creates a selection set of the last object added to the database that is visible on the screen
|
(setq ss1 (ssget pt2))
|
Creates a selection set of an object passing through point (5,5)
|
(setq ss1 (ssget "W" pt1 pt2))
|
Creates a selection set of the objects inside the window from (0,0) to (5,5)
|
(setq ss1 (ssget "F" (list pt2 pt3 pt4)))
|
Creates a selection set of the objects crossing the fence and defined by the points (5,5), (4,1), and (2,6)
|
(setq ss1 (ssget "WP" (list pt1 pt2 pt3)))
|
Creates a selection set of the objects inside the polygon defined by the points (0,0), (5,5), and (4,1)
|
(setq ss1 (ssget "X"))
|