[BlenderBIM] How to set dimensions digits number
Hi everybody,
i wanted to change the number of digits viewed in the drawing, but i did't make it so here i ask.
For example, i wanted to view this dimension as "6.80" instead of "6.800" like it's showed here:
I tried to change "MetricPrecision" in "EPset_Drawing" but it only changes the round value so, in this case, is not useful.
I tried also to change some parameters in the .css file but with no luck...
Any ideas?
PS. It's also useful to know how to change the height of dimension text...
Thanks,
Massimo
Tagged:
Comments
This isn't possible yet :) Can you please file a bug?
The height of the dimension text can be styled with CSS. You can target the
text.DIMENSION
class.Ok! https://github.com/IfcOpenShell/IfcOpenShell/issues/2993
About height text, adding
text.DIMENSION {font-size: 5px}
to .css file specified in the EPset_Drawing allows to change the text height of all dimensions (5px in this case).The feature have been added in blenderbim here

A screenshot:
Look at DecimalPlaces
To go a little further, is there a way to format the text? For example, removing the hyphen from between feet and inches in imperial?
Never mind. ;) Found in ...\blenderbim\bim\module\drawing\helper.py - Ln. 121
This function stolen from https://github.com/kevancress/MeasureIt_ARCH/blob/dcf607ce0896aa2284463c6b4ae9cd023fc54cbe/measureit_arch_baseclass.py
MeasureIt-ARCH is GPL-v3
def format_distance(...) ...