Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bug: InternalValidation when setting SketchText.text in moved Sketch

1 REPLY 1
Reply
Message 1 of 2
thomasa88
76 Views, 1 Reply

Bug: InternalValidation when setting SketchText.text in moved Sketch

A user of my add-in (ParametricText) has found that the SketchText.text cannot be updated if the sketch is moved:

 

  1. Create a new design document
  2. Create a sketch with the text "test"
  3. app.activeProduct.rootComponent.sketches[0].sketchTexts[0].text="A"
    --> Text is updated to "A"
  4. Using the Move/Copy tool, move the sketch 30 mm up
  5. app.activeProduct.rootComponent.sketches[0].sketchTexts[0].text="B"
    The following error is shown:

 

Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "C:\Users/Thomas/AppData/Local/Autodesk/webdeploy/production/99249ee497b13684a43f5bacd5f1f09974049c6b/Api/Python/packages\adsk\fusion.py", line 86683, in _set_text
return _fusion.SketchText__set_text(self, value)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: 2 : InternalValidationError : res

 

 

Original bug report: https://github.com/thomasa88/ParametricText/issues/61

1 REPLY 1
Message 2 of 2
john.kirchner
in reply to: thomasa88

I am able to reproduce the issue and have created a ticket for a bug fix. Thank you for reporting this!



Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report