CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2531 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 8960:

Question CAD 
 %  platform  category 
Q - question

Change the value of a name-selected attribute.

A - answer With the AutoCAD command -ATTEDIT you can modify the value of any block attribute even in a script or macro - both the block and the attribute are selected by name:
Command: -ATTEDIT
Edit attributes one at a time? [Yes/No] : N
Performing global editing of attribute values.
Edit only attributes visible on screen? [Yes/No] : N
Drawing must be regenerated afterwards.
Enter block name specification <*>: MYBLOCK
Enter attribute tag specification <*>: MYATTR
Enter attribute value specification <*>:
1 attributes selected.
Enter string to change:
Enter new string: MYNEWTEXT

You can also try the Express Tool GATTE (or its modified version - see Download)

ACAD
100% *  CAD 
7.12.2012    3866×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12264:How to show dimension tolerance in a different color?
Tip 12172:How to show or hide an object in all visibility states?
Tip 11794:Undocumented code in field expression - MText contents without control characters.
Tip 11729:Select objects by annotation scale.
Tip 11614:How to reorder custom properties in a dynamic block?


Back   All CAD Tips All CAD tips&tricks



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 add-on functions for AutoCAD Civil 3D
CADstudio Civil 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