View scale property needs more decimal places

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

View scale property needs more decimal places

Post by jmaustpc »

Hi all
I noticed this when designing a house.

If you put a TechDraw View of something the size of a house onto a A3 or A4 page we reach the limit of decimal places able to be entered in the property editor. For example with my file below 14m by 6.3m Part Box, the Automatic zoom gives 0.01 scale factor which is about correct. But if you want to change it you can only double its size by going to 0.02 which is too big. So the issue is that we need smaller numbers i.e. more decimal places, so that we can put even larger items views on the page but also so that we have a much finer control on the actual scale value.

zoom_techdraw_view_large_object.fcstd
(17.56 KiB) Downloaded 43 times
Jim


OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11616 (Git)
Build type: None
Branch: master
Hash: aba4338808178b508f3170237f205e0066a5b437
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/Australia (en_AU)
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: View scale property needs more decimal places

Post by wandererfan »

What is your Preferences>General>Units>Decimals setting?
Units.png
Units.png (22.74 KiB) Viewed 1849 times
ScalePlaces.png
ScalePlaces.png (15.94 KiB) Viewed 1849 times
User avatar
regis
Posts: 725
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: View scale property needs more decimal places

Post by regis »

Hello @ wandererfan, While looking into those scales and trying to find a way to work in imperial scaling, @ Yorik had given me this nice trick where you can calculate the scale. And having the decimal units set to 10 as a number of decimal was really helpful.
for example
If I need a drawing on paper sheet to be at 1/8" scale - 1'
the calculation goes as this
1/8" = 1'
1/8" = 12"
0.125" = 12"
Scale = 0.010416667

That's why I had to create a 10 digit decimal in other to accommodate for the best precision possible.
So basically, how to have a list of settings and scales predefined already, and have an extra one which sames "custom" so that one can still have the ability to enter in the scale he needs.
I hope this is not a conversation started on a dedicated thread :)
Attachments
Screenshot from 2018-12-08 11-39-12.png
Screenshot from 2018-12-08 11-39-12.png (28.41 KiB) Viewed 1627 times
Screenshot from 2018-12-08 11-38-24.png
Screenshot from 2018-12-08 11-38-24.png (5.21 KiB) Viewed 1627 times
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: View scale property needs more decimal places

Post by wandererfan »

regis wrote: Sat Dec 08, 2018 4:54 pm That's why I had to create a 10 digit decimal in other to accommodate for the best precision possible.
So basically, how to have a list of settings and scales predefined already, and have an extra one which sames "custom" so that one can still have the ability to enter in the scale he needs.
Difficult to do in the property editor, but one "good intention" for v0.19 is to have a task dialog for creating/editing view parameters (like Section and ProjectionGroup have now). In such a dialog it would be relatively easy to selection list of standard scales.
User avatar
regis
Posts: 725
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: View scale property needs more decimal places

Post by regis »

wandererfan wrote: Sat Dec 08, 2018 11:33 pm
regis wrote: Sat Dec 08, 2018 4:54 pm That's why I had to create a 10 digit decimal in other to accommodate for the best precision possible.
So basically, how to have a list of settings and scales predefined already, and have an extra one which sames "custom" so that one can still have the ability to enter in the scale he needs.
Difficult to do in the property editor, but one "good intention" for v0.19 is to have a task dialog for creating/editing view parameters (like Section and ProjectionGroup have now). In such a dialog it would be relatively easy to selection list of standard scales.
Oh good idea but how exactly do you mean? do you a screenshot? of the editing parameters like section and projectionGroup..
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: View scale property needs more decimal places

Post by wandererfan »

regis wrote: Sat Dec 08, 2018 11:56 pm Oh good idea but how exactly do you mean? do you a screenshot? of the editing parameters like section and projectionGroup..
Just an idea at this point, nothing to show. It would provide a convenient way of setting Direction, Scale, Rotation, etc.
User avatar
regis
Posts: 725
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: View scale property needs more decimal places

Post by regis »

wandererfan wrote: Sun Dec 09, 2018 12:25 am
regis wrote: Sat Dec 08, 2018 11:56 pm Oh good idea but how exactly do you mean? do you a screenshot? of the editing parameters like section and projectionGroup..
Just an idea at this point, nothing to show. It would provide a convenient way of setting Direction, Scale, Rotation, etc.
:lol: Haha great I trust your coding magic.
Post Reply