I didn't even know this was possible...
Option to hide units in Sketcher
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Option to hide units in Sketcher
It's automatic, it's how the default Standard set of units works. Over 10,000mm, it's automatically converted to 10m.
Same thing for small values, 0.01mm is automatically converted to 10μm.
Many people find it annoying, but that's how it is...
Same thing for small values, 0.01mm is automatically converted to 10μm.
Many people find it annoying, but that's how it is...
Re: Option to hide units in Sketcher
Learn something new everyday. I'll work that in when I get there.
I started coding this up in between nap times and could use a little help with the preference architecture. I built the widget library, installed it, opened SketcherSettings.ui, and added a new Pref checkbox. After rebuilding my option is there and clickable, no issues.
I thought by using a PrefCheckbox widget that saving and restoring the state of the preference would be handled automatically but that does not seem to be the case. So that's my question: what's the proper procedure for saving, restoring, and accessing the current state of a preference?
I started coding this up in between nap times and could use a little help with the preference architecture. I built the widget library, installed it, opened SketcherSettings.ui, and added a new Pref checkbox. After rebuilding my option is there and clickable, no issues.
I thought by using a PrefCheckbox widget that saving and restoring the state of the preference would be handled automatically but that does not seem to be the case. So that's my question: what's the proper procedure for saving, restoring, and accessing the current state of a preference?
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Option to hide units in Sketcher
I don't exactly understand. how this topic evolved. First is talked about the sketcher and it looks like implementing some stuff in Techdraw?
Re: Option to hide units in Sketcher
I think that this topic is still about Sketcher. It can use some techniques which wandererfan explored for TechDraw.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Option to hide units in Sketcher
Correct. Mr. Wandererfan was just showing me an example in TechDraw where they also stripped units from the dimension string so that I could use it as a reference for the Sketcher work.
Speaking of which, I got distances working this morning:
Re: Option to hide units in Sketcher
Looks promising. The naked "2" looks a bit lost, but it saves clutter.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Option to hide units in Sketcher
I use KDevelop. It is available from the repositories of most distributions and also as AppImage (which is usually a most modern version).hokieengr wrote: ↑Sat Jun 30, 2018 6:05 pm For Linux developers: if you use an IDE, what is it? I've always just coded in vim, emacs, etc but even a good text editor doesn't help with really understanding a project the size of Freecad. I'm hoping maybe a good IDE will help me see the forest from the trees.
Re: Option to hide units in Sketcher
Quick question: how does one access the unit schema currently in use? I need this to determine unit strings and figure out what to hide and what not to hide.
Thank you!
Thank you!