I have been battling CREO with trailing zeros and dimension tolerancing, and just about beaten it into submission for drawing dimensions, but my battle persists for the hole call outs and scale figures.
It defaults to 3 decimal places, how do I change this to 1? I tried to follow your comment below but all it kept doing was adding “.n” in the text line instead of adding a control function.
Obviously I am doing something wrong, but need pointing out what.
Reading you comment:
“- hole parameters within the hole notes appear with 3 decimals,
regardless of the value set for the default_dec_places configuration option.
if you want to change the number of decimal places for the hole parameter,
type [.n] after the parameter in the text tab of the note properties dialog
box. here, n is the number of decimal places. you can edit the hole
parameter values only through the note properties dialog box that opens when
you select the hole note and click edit > value. alternatively, to edit hole
parameter values through the note properties dialog box, select the hole
note, right-click, and click edit value on the shortcut menu.”
This is what’s displaying:
Given by the following text string:
&METRIC_SIZE &THREAD_SERIES - &THREAD_CLASS &STD_HOLE_TYPE &VAR_THREAD &THREAD_DEPTH
DRILL &DIAMETER THRU ONCE
My question is, do I put .n or [.n] after evey dimension I want to control the dp, or at the end of the string to control everything within that text box?
Replace the 'n' with a numeric value for the number of decimal places you want to show.
It truncates the display, not rounds.
rawnumber = 15.2654
&rawnumber[.3] = 15.265
&rawnumber[.2] = 15.26
&rawnumber[.1] = 15.2
That is done through the dimension properties dialog box.
There is a config.pro option default_dec_places that can be set to control new sketch dimension decimal places.