 |
|
 |
The text field functionality in AutoCAD allows displaying dynamic properties - not only for drawing objects but also for named objects (internal DWG tables). Through this undocumented process you can display current properties of selected layers, text syles, linetypes, blocks, dimension styles, views and tables styles.
Use the standard dialog of the FIELD command or insert a field in your MText editor. Choose the category Objects > Named object. In the pane "Named object type", select the object type - e.g. Layer - and pick a specific object in the name list. In the bottom pane "Field expression", copy (Ctrl+C) the text between the "%" characters (including them). Cancel the dialog.

Edit the copied string (e.g. in Notepad) so that replace the trailing ".Name" with the name of the requested property - e.g. ".Color", ".Height" or ".FontFile".

Now paste this edited complete control string AcObjProp Object back again - as a plain string - into the MText editor or as a new DText - it will be replaced by the detected current value of the particular property. If you then change the property, the text will automatically reflect the change. You can also use more advanced processing using the fields with Diesel expressions.

A sample of such DWG file can be found in the Block Catalog - ObjFields.
|
|
ACADLT
|

* CAD
|
3.11.2016
7407×
|
|
|