ParametricText icon indicating copy to clipboard operation
ParametricText copied to clipboard

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

Open greenveg opened this issue 2 years ago • 2 comments

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

  • OS: macOS Monterey
  • Fusion 360 version: 2.0.12888 (paid)
  • ParametricText version: 2.0.12888 (installed manually, see issue 34)

greenveg avatar Apr 25 '22 17:04 greenveg

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

thomasa88 avatar Apr 25 '22 17:04 thomasa88

Ah shit, missed that there was an update.

greenveg avatar Apr 25 '22 17:04 greenveg