Message 1 of 7
[Bug] Unable to modify text of a sketchText created manually with negative angle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
1) Open a new document
2) Add a text with negative angle in a sketch
3) Run the script below
import adsk.core, traceback # pylint: disable=import-error
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
design = app.activeProduct
rootComp = design.rootComponent
sketches = rootComp.sketches
sketch = sketches.item(0)
sketchText = sketch.sketchTexts.item(0)
sketchText.text = 'new text'
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
It returns the error: "Invalid input angle".
Thank you.
Jérôme Briot, Freelance engineer - Mechanical design and prototyping
3D Print Plus / Pro | IDF Import | GitHub To Fusion 360 | Tube Bending Data Exchanger | Slice Data Export
Memory Used | Basic Calculator | Check Computer Specifications | Import spline from any CSV file