ParametricText
ParametricText copied to clipboard
Cannot use an out-of-plane text object - was "Cannot add new text param"
Describe the bug after adding/changing a text param, i get an error dialog.
To Reproduce Steps to reproduce the behavior:
- create sketch with text item
- select Modify | Change Text Parameters
- select the sketch and enter a param (in this case, {_.configuration}, although it happens with any param value
Expected behavior Sketch text should change to reflect param
Screenshots
Software
- OS: Windows
- Fusion 360 version: Fusion 2.0.18950 x86_64
- ParametricText version: 2.4.0
i know enough Python to find my way in the code, if there's something you'd like me to try patching.
to create the sketch:
- new sketch
- create | text
- add a placeholder text, set height, alignment, etc.
- finish sketch
Followup: The text block in question seems to have been at a really weird angle to the sketch plane. Not entirely sure how I managed it. Realigned the sketch to a different plane, and the text was skewed away from the plane. That said, it was also failing on a different computer. Will retest when I get back to the other box and see if it still works.
Followup 2: yes, that seems to have been the issue. I'm not sure if it's worth fixing or not, considering how rare out-of-plane text is likely to be, but I'll let you be the judge of that. Still not sure how I created it that way. It was coincident to and/or dimensioned off of several other things, so maybe one of those processes was to blame.
Hi, thanks for following this up so thoroughly.
I think it is the same bug as in https://github.com/thomasa88/ParametricText/issues/61
It has been upstreamed to Autodesk: https://forums.autodesk.com/t5/fusion-api-and-scripts/bug-internalvalidation-when-setting-sketchtext-text-in-moved/td-p/12553570