Python script to change unit size of the model

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
a3bksll47
Posts: 197
Joined: Sat Mar 17, 2018 3:42 am

Python script to change unit size of the model

Post by a3bksll47 »

I started a model design at the default mm setting, concerned more about proportion, and started the drawing inside a small portion of the screen. I later encountered an Extrude condition where I needed to specify a value in the 1/1000 range, and FreeCAD wants to round that extrusion off to the nearest 1/100th. Feature? Bug? I don't know, but I could solve things for the time being by first simply multiplying everything in the model by at least an order of magnitude.

Is there a Python routine that can deal with that?
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Python script to change unit size of the model

Post by chrisb »

In Preferences->General->Units you can set the number of decimals.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
a3bksll47
Posts: 197
Joined: Sat Mar 17, 2018 3:42 am

Re: Python script to change unit size of the model

Post by a3bksll47 »

That works. Thanks.
Post Reply