Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text size of sketch is increased to 20,00 mm when performing save as #29

Closed
Turbaud opened this issue Jul 23, 2021 · 5 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@Turbaud
Copy link

Turbaud commented Jul 23, 2021

Describe the bug
When I save my design, the sketch which contains the _version parameter sees the text height changed form 5 mm to 20 mm during the update process
I have other sketches in the same design that don't have this problem

To Reproduce
Steps to reproduce the behavior:

  1. create sketch
  2. add text.
  3. set text height to 5 mm
  4. create text parameter that includes _version for the sketch previously created
  5. apply emboss on surface
  6. save design
  7. See error

Expected behavior
the text would be updated without having the text height changed

Screenshots
self explanatory

Software

  • OS: Windows 10 19043
  • Fusion 360 version: 2.0.10446
  • ParametricText version: 2.2.0

Do not forget to "Subscribe" to the issue if you want updates!

@Turbaud Turbaud added the bug Something isn't working label Jul 23, 2021
@ChrisHeerschap
Copy link

I'm seeing this exact issue, although my intended text size is 10. When I update the parameter that drives the text, the text also changes to 20mm.

@thomasa88
Copy link
Owner

thomasa88 commented Nov 10, 2023

Hmm, I think it might be the workaround of an old Fusion 360 bug acting up. #21

From the code:

Changing any SketchText property resets the text height
Bug: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/bug-setting-sketchtext-properties-resets-text-height-since-v-2-0/m-p/10357593

If we assume that Fusion 360 works correctly these days (setting the text of a sketch does not reset text height), then it might work by turning the workaround off.

Can you try the following:
In ParametricText.py (you can find the install location in the add-ins dialog if you expand the bottom part) find the following line:

text_height_workaround_state_ = WorkaroundState.Check

Change it the following and reload the add-in (or restart Fusion 360):
text_height_workaround_state_ = WorkaroundState.Disabled

Does it make any difference?

@ChrisHeerschap
Copy link

Sorry for the super slow response on this, but yes! It worked! Had a model that kept reverting to 20mm, changed that workaround state from check to disabled as requested and now when I update the parameter and ParametricText updates it, the text size is preserved! Thank you!

@thomasa88 thomasa88 added this to the v2.3+ milestone Jan 27, 2024
@thomasa88
Copy link
Owner

Thanks for reporting back! I will put this in a new release (hopefully within a few days).

thomasa88 added a commit that referenced this issue Jan 28, 2024
Workaround for old text size bug was causing text size to become
changed as part of the bug test.
@thomasa88
Copy link
Owner

thomasa88 commented Jan 28, 2024

Published in 2.3.3 release. Submitting to Autodesk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants