Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

decimal rounding in sketcher

JAQOMO

New member
Hi,
Is there anyway to turn off the rounding up and down of numbers in sketcher?
For example a reference that is a decimal, say 11.017, would be displayed as rounded up to 11.02. Clicking on the reference and it is 11.017. What makes it worse is that when saving the sketch only the rounded numbers are saved and not the exact original decimal.

Any help- be grateful.
 
Set the config option sketcher_dec_places to say 5 or 6 or as you may require. But this is only for sketcher. Others like extrusion is controlled by option default_dec_places
 
JAQOMO,
Do a simple test...
_ Create a sketch with an entity dim'd to about 6 decimal places.
(i.e. 1.123456 or go even further and dim it "pi")
_ Finish the sketch and then go to Tools / Relations / Part.
_ Select the sketch so the dim shows.
_ Start the Relation Expression Evaluator and input the expression
d## * 1e6, Evaluate. (d## is the symbolic name of your dim.)


That demonstrates that the value saved is floating point precision.


To change the Display of dimension values, look at config options
sketcher_num_digits
sketcher_dec_places
default_dec_places
(search for the terms "digit", "places", etc. might be more)


(I'd have to look for the post but there is a Pattern ROUNDING bug in
at least some versions. It can be circumvented by creating a feature
relation after creating the Pattern. The full precision value will be
used then.)
 

Sponsor

Articles From 3DCAD World

Back
Top