ParametricText icon indicating copy to clipboard operation
ParametricText copied to clipboard

Cannot use an out-of-plane text object - was "Cannot add new text param"

Open rbrian opened this issue 10 months ago • 4 comments

Describe the bug after adding/changing a text param, i get an error dialog.

To Reproduce Steps to reproduce the behavior:

  1. create sketch with text item
  2. select Modify | Change Text Parameters
  3. 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 image

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.

rbrian avatar Apr 12 '24 02:04 rbrian

to create the sketch:

  1. new sketch
  2. create | text
  3. add a placeholder text, set height, alignment, etc.
  4. finish sketch

rbrian avatar Apr 12 '24 02:04 rbrian

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.

rbrian avatar Apr 12 '24 23:04 rbrian

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.

rbrian avatar Apr 14 '24 22:04 rbrian

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

thomasa88 avatar Apr 15 '24 06:04 thomasa88