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: 2734

CAD tip CAD tip # 13426:

   
Question CAD 
 %  platform  category 
Q - question

Use of alternative units for arithmetic in dimensions (without square brackets).

A - answer Using a trick with text formatting control codes, you can suppress the display of square brackets in AutoCAD (and LT) dimensions for alternative units, and then use them to display auxiliary data, such as relative (fractional) distances or the number of parts needed to compose the dimensioned distance (e.g., pipes, fence fields). The data is calculated dynamically, is associative with the dimensioned geometry, and does not require the use of text fields.

For example, computed dimensions may look like the following:

How to do this? First, we need to create a helper dimension style in the DIMSTYLE command, in which we make the necessary settings.

On the Primary Units tab, set the Suffix to "\F" or " mm\F". Why "\F"? That's one of the control codes for formatting text (see the Tip 8640) - it switches the font of the text, and effectively tells AutoCAD to "consider the following text as the font name" - thus "turning off" the automatically inserted "[" (until a semicolon or other control code is found).

The further required settings will depend on your desired "calculation" of the alternative dimension data. For example, if you want to display one-third of the measured dimension length, set the "Alternative units multiplier" to 0.333333 and then the desired Precision and Rounding. Set the desired prefix (the code "\X" means: wrap below the dimension line) and use "\F" again at the end of the suffix to turn off the automatically inserted closing square bracket ("]").

Or, if you want to calculate the estimated consumption of pieces of panels, pipes, fence posts, etc. per dimensioned length, use a calculation with a factor that determines the relationship between the length of the geometry and the length of the part - for example, for 40mm parts, the multiplier would be 0.025 (1/40). Again, set the Precision and Rounding - in this case, probably "0" and "1". You can also use other control characters in the Prefix and Suffix fields, e.g. "\H" for text height or "\L" for underline.



For example, the resulting behavior of a dimension with this dimension style is as follows:


Note: due to the "fake" font switch, the "alternate" part of the quote may appear in a different font in some cases - for these situations, change the settings of the FONTALT variable.

ACADACLTADTACADMPlantMapCivil3D
100% *  CAD 
28.7.2022    285×  

See also:
Tip 13411:How do I set tolerances for several dimensions at the same time?
Tip 12697:Opposite angle for angular dimensions in Inventor drawings (iLogic).
Tip 12264:How to show dimension tolerance in a different color?
Tip 12228:How to set decimal precision (number of dec.places) for Inventor 3D Annotations?
Tip 11989:How to dimension an ellipse in AutoCAD?


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:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist