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

CAD tip CAD tip # 2824:

Question CAD 
 %  platform  category 
Q - question

Can I use QSELECT to select particular block names from a script?

A - answer Not with QSELECT but you can use the LISP selection filter to do this.

E.g. to select all blocks named "MYBLOCK" you can use:

_SELECT (ssget "X" '((0 . "INSERT")(2 . "MYBLOCK")))
100% *  CAD 
10.2.2003    8370x  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD Architecture · MDT · AutoCAD Map ·

See also:
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)
Tip 11004:AutoCAD forgets window-selected objects when zoomed off screen.
Tip 10562:How to select all vertical or all horizontal lines in a DWG?
Tip 7669:Find and select blocks with a given attribute.
Tip 7583:Select dynamic blocks by dynamic properties.

Back   All CAD Tips All CAD tips&tricks

Where can I find an Architectural Desktop Object Enabler for LT 2000? « | » How to control DbConnect from the command line or from a script?

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   

Use Google Earth images in your AutoCAD projects with the Plex.Earth 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.