CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2606 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 6365:

Question CAD 
 %  platform  category 
Q - question

The "Select similar" function also in plain AutoCAD.

A - answer The function "Select similar" (the command SELECTSIMILAR, resp. AecSelectSimilar - see the menu Edit and the object context menu) is in older versions (pre-2011) available only in the AEC versions of AutoCAD (AutoCAD Architecture, AutoCAD MEP, AutoCAD Civil 3D).

Using a simple LISP expression you can add this functionality also to a plain AutoCAD. Add the following expression (command) to a toolbar button or context menu:
(cadr(sssetfirst nil (ssget"_X"(list(cons 0(cdr(assoc 0(entget(car(entsel"\nSelect object and all similar: "))))))))))

This function can be then used either in the normal command mode - after you select an object, all entities of the same type are grip-selected; or you can use it on the standard "Select objects" prompt - there it includes the selected object and all similar objects in a standard selection set of an editing command.

Another option is to use the expression:
(ssget(list(cons 0(cdr(assoc 0(entget(car(entsel"\nSelect object and all similar: "))))))))

This function also prompts for a sample object. Then it asks for a standard objects selection. From these objects, only those objects will be used which are similar (the same type) to the sample object.

100% *  CAD 
29.10.2008    32195x  
Comments   Tell a friend

See also:
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)
Tip 11017:How to select a DWG object by its internal ID, its "handle"?
Tip 11004:AutoCAD forgets window-selected objects when zoomed off screen.
Tip 10976:DUP - easily duplicate AutoCAD drawing objects.
Tip 10926:Self-intersecting polylines and polylines with duplicate vertices.

Back   All CAD Tips All CAD tips&tricks

Inserting and updating time and date in an AutoCAD drawing. « | » Direct entry of a Pantone color hue for AutoCAD entities.

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   

Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools 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.