Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
In FreeCAD, can you set units per-document?
I use metric units in some projects, imperial in others. It's annoying having to keep switching global units every time.
Is there a way in FreeCAD to set the units per-document? When I open a document that is using imperial, it should automatically switch to imperial, but when I open another with metric it should use metric.
1 answer
No you can't do that on a project file basis with the current FreeCAD version. See also the FreeCAD discussion about this topic.
But honestly, using non-metric units is a stupid idea anyway, don't do that. Use metric for everything. There shouldn't be anything non-metric.
One workaround is to use 2 different configuration files, one where you set FreeCAD to use SI units and one where you set FreeCAD to use British units and then use a script or something like that that opens FreeCAD with the arguments --user-cfg /path/to/config/file/si.cfg
or --user-cfg /path/to/config/file/nonmetric.cfg
. Alternatively, you could create a script that edits the configuration files. Maybe something like this:
sed 's/.*UserSchema.*/ <FCInt Name=\"UserSchema\" Value=\"1\"\/>/' -i "$HOME/.FreeCAD/user.cfg"
To automatically change the units FreeCAD displays.
This is of course a workaround. It would be of course better to fix the root cause (the use of non-metric units).
0 comment threads