CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 2952 

CAD tip CAD tip # 9619:

Question CAD 
 %  platform  category 
Q - question

How to get rid of "----" in empty fields?

A - answer When you place a text field in your drawing and this text field refers an empty value, e.g. a not filled-in record in the drawing properties, it is displayed as 4 dashes "----".

This display method cannot be changed but you can pre-fill a different value than the empty string "" into the referred property - e.g. a space or - if spaces are ignored - the "non-breaking space" character (defined in Unicode as the code 160). You can enter this special character e.g. with the key combination ALT+0160 (on your numpad); the used font must contain the definition of this glyph (otherwise it shows as "?").

If you want to specify a field code which is not displayed as "----" (e.g. in sheet set properties), use just two percent signs: %%.

100% *  CAD 
20.12.2013    6311×  

See also:
Tip 12685:ReLinkField - re-link fields to source objects.
Tip 12616:Att2elev - move block to elevation specified by its attribute.
Tip 12470:A table with calculated expressions is suddenly dead, doesn't calculate and update.
Tip 11888:Dynamic label of area and perimeter - DynArea.
Tip 11794:Undocumented code in field expression - MText contents without control characters.

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   

Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 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.