CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 5664 
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)

100% *  CAD 
7.12.2012    3294×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
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?
Tip 11404:Operations with attributes inside a block - fields.
Tip 11398:Editing block attributes in AutoCAD mobile.

Back   All CAD Tips All CAD tips&tricks

Project 2D curve to a 3D sphere. « | » How to convert a 2D sketch to a 3D sketch in Inventor?

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.