thomasa88 / ParametricText

Fusion 360™ add-in for creating Text Parameters in sketches.
MIT License
83 stars 5 forks source link

Plug-in generates a bunch of zeroes past the decimal point #38

Closed greenveg closed 1 year ago

greenveg commented 2 years ago

Describe the bug Plug-in generates a bunch of zeroes past the decimal point. See screenshots. If I change parameter named "pitch" to "2" it magically works well, but when changed back to "3" the zeroes reappear.

To Reproduce Not sure, but here's my fusion file: M24x3mm tester v1.f3d.zip

Expected behavior No unnecessary zeroes

Screenshots

Main problem:

Param text bug 1

List of parameters @ time of stupid:

Param text bug 2 Param text bug 3

If parameter "pitch" changed to "2" zeroes disapperar. They reappear if changed back to "3".

Param text bug 4

Software

thomasa88 commented 2 years ago

Hi, thanks for a well-written error report!

Please try installing ParametricText v2.3.0, which tries to be a bit smarter about decimal defaults.

Otherwise, try setting the number of decimals explicitly:

{pitch:.1f} Should give one decimal

{pitch:.0f} Should give zero decimals

greenveg commented 2 years ago

Ah shit, missed that there was an update.