Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Bug: InternalValidation when setting SketchText.text in moved Sketch

thomasa88
Advocate

Bug: InternalValidation when setting SketchText.text in moved Sketch

thomasa88
Advocate
Advocate

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

0 Likes
Reply
184 Views
1 Reply
Reply (1)

john.kirchner
Autodesk
Autodesk

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



1 Like