CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 5289 

CAD tip CAD tip # 3968:

Question CAD 
 %  platform  category 
Q - question

Less known options of the (ssget) LISP function

A - answer The AutoLISP "Select objects" function 'ssget' offers several useful modifiers which are undocumented and unknown for many users. Besides usual formats like (ssget) or (ssget "_X") etc. you can use in your programs or macros e.g.:
  • (ssget "_:S") - selecting a single selection (for single object use "_:S+.")
  • (ssget "_:E") - selecting all objects crossing the selection box (can be also combined to e.g. (ssget "_:E:S")
  • (ssget "_:N") - selecting objects including nested/child objects - e.g. with block references, polymeshes, etc.
  • (ssget "_:D") - duplicate objects counted separately (2x selected object = 2 selections)
  • (ssget "_:L") - stops users from selecting objects on locked layers
  • (ssget "_:P") - rejects selection of viewports
  • (ssget "_:R") - allow selection in long transactions
  • (ssget "_:U") - enable subentity selection with Ctrl
  • (ssget "_:V") - force subentity selection
  • (ssget "+?) - add selected mode - L=Last, A=All, P=Previous - e.g. (ssget "_:S+L+P")
  • (ssget "-?) - remove selected mode - L=Last, A=All, G=Group, P=Previous - e.g. (ssget "-M-A")
  • (ssget "_+.") - allows window selection even in the single selection mode - e.g. (ssget "_+.:E:S") (may not work in some localized versions of AutoCAD)
100% *  CAD 
6.8.2004    28994×  
Comments   Tell a friend

See also:
Tip 11780:How to rename layouts by a specific attribute of the title block?
Tip 11179:Select objects in negative elevation or in a given 3D octant.
Tip 10269:How to restore erased hatch boundaries? (multiple)
Tip 10015:How to select and modify objects in all layouts of the DWG?
Tip 9350:How to move the draw order of all images or hatches to back?

Back   All CAD Tips All CAD tips&tricks

How to import formatted paragraph text into AutoCAD? « | » INTERNAL ERROR: !dblayoti.cpp@97: ePermanentlyErased

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.