CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 4891

CAD tip CAD tip # 6403:

   
Question CAD 
 %  platform  category 
Q - question

Select all specific texts in a drawing.

A - answer You can use severel methods to select all texts of a specific type (value) in a drawing. Let us have a drawing containing three separate text objects (Dtext/Mtext): Adam,Bravo,Charlie. Our goal is to select the text entities Adam and Bravo.

The simplest way is to use the FILTER command. In the filter type choose Text, value and in the X field enter [AB]* (see wildcard characters in Help). Click the "Add to list" button and use the filter.

Another option is to use a filter in the AutoLISP selection function - (ssget). For the requested type of selection, this function would read:

  
(ssget "_X" '((0 . "TEXT,MTEXT")(1 . "A*,B*")))  
You can enter this LISP expression directly on the "Select objects" prompt.
ACADADTACADMCivil
100% *  CAD 
19.11.2008    34519×  

See also:
Tip 12210:How to erase a specific object type in all DWG layouts?
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?


Back   All CAD Tips



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   



Featuring:
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 is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist