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

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    9211×  
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   

Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 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.