CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.124.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 7844:
Question
A
How to round the value displayed in the dynamic field label to the nearest 5 units? E.g. to read "680" instead of the true 677, or "675" instead of true 676 units.
You can use the round function mentioned in the Tip 6381. Use round(XXX/5)*5.
Instead of XXX, right-click to insert a nested field and choose e.g. the object area property (do not use unit suffix). This will make the field dynamic. The resulting field code will look something like:
%<\AcExpr (round(%<\_FldPtr 325850784>%/5)*5)>%
ACAD
7.3.2011
16324×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?