Bug: InternalValidation when setting SketchText.text in moved Sketch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
A user of my add-in (ParametricText) has found that the SketchText.text cannot be updated if the sketch is moved:
- Create a new design document
- Create a sketch with the text "test"
- app.activeProduct.rootComponent.sketches[0].sketchTexts[0].text="A"
--> Text is updated to "A" - Using the Move/Copy tool, move the sketch 30 mm up
- 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