Integers as parameters in Draft Scale panel

A forum dedicated to the Draft, Arch and BIM workbenches development.
User avatar
bitacovir
Posts: 512
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Integers as parameters in Draft Scale panel

Postby bitacovir » Wed Apr 17, 2019 2:26 pm

Hi. I just notice that I cannot write 0.x as scale parameter in the panel of Draft Scale. Only Integers are allowed.
Is this a bug? (also in 0.17, 0.18, 0.19)

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16474 (Git)
Build type: Release
Branch: master
Hash: 746997e48411f22a150b95b6fdbb9b02cbe741d5
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)

Image is from FreeCAD 0.17
FreeCAD_2019-04-17_10-02-42.png
FreeCAD_2019-04-17_10-02-42.png (32.95 KiB) Viewed 155 times
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
vocx
Posts: 421
Joined: Thu Oct 18, 2018 9:18 pm

Re: Integers as parameters in Draft Scale panel

Postby vocx » Wed Apr 17, 2019 4:56 pm

bitacovir wrote:
Wed Apr 17, 2019 2:26 pm
Hi. I just notice that I cannot write 0.x as scale parameter in the panel of Draft Scale. Only Integers are allowed.
Is this a bug? (also in 0.17, 0.18, 0.19)
It works here in 0.18. It has always worked.

What comes to mind is the precision of the numbers that you set in Edit -> Preferences.

As far as I can tell, all dialogs like these depend on the precision that you set. So if you set 0 decimal places, maybe it doesn't allow you to write any number below 1.
User avatar
bitacovir
Posts: 512
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Integers as parameters in Draft Scale panel

Postby bitacovir » Wed Apr 17, 2019 6:28 pm

vocx wrote:
Wed Apr 17, 2019 4:56 pm

It works here in 0.18. It has always worked.

What comes to mind is the precision of the numbers that you set in Edit -> Preferences.
Thanks @vocx. But it is not in my case. I have 2 decimals in preferences. But the panel does not allow to write decimals. Maybe there is an addon or something that produces this conflict.
DraftScale.gif
DraftScale.gif (1001.17 KiB) Viewed 132 times
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
User avatar
bitacovir
Posts: 512
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Integers as parameters in Draft Scale panel

Postby bitacovir » Wed Apr 17, 2019 10:23 pm

Ok. I found something.
I deleted all addons and reset preferences. Still, the problem remains. But if I change the language from English to Spanish, there is no problem. However, if I go back to English language, the problem is back. My OS is windows 10.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
FreeCAD_2019-04-17_18-20-10.png
FreeCAD_2019-04-17_18-20-10.png (23.85 KiB) Viewed 103 times
FreeCAD_2019-04-17_18-18-15.png
FreeCAD_2019-04-17_18-18-15.png (24.64 KiB) Viewed 103 times
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
chrisb
Posts: 14562
Joined: Tue Mar 17, 2015 9:14 am

Re: Integers as parameters in Draft Scale panel

Postby chrisb » Thu Apr 18, 2019 4:36 am

This is/was a known issue, but I think it has been fixed. Just try changing the number of decimals to somethng different, confirm, and then change them back.
chrisb
Posts: 14562
Joined: Tue Mar 17, 2015 9:14 am

Re: Integers as parameters in Draft Scale panel

Postby chrisb » Thu Apr 18, 2019 4:49 am

It's not fixed: issue #3691.
User avatar
bitacovir
Posts: 512
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Integers as parameters in Draft Scale panel

Postby bitacovir » Thu Apr 18, 2019 1:50 pm

chrisb wrote:
Thu Apr 18, 2019 4:49 am
It's not fixed: issue #3691.
Thanks for the clarification.
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project