Message 1 of 11
Bug: Setting SketchText properties resets text height since v. 2.0.10244
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Fusion 360 v. 2.0.10244 breaks the sketch text API. Changing the any property of a SketchText results in the height of the text being reset to 1.0 (cm).
This means that the workaround of getting the height first, setting properties, and the restoring the height, does not work.
In the GUI, create a new document. Create a sketch with a sketch text. Set the sketch text height to 20 mm.
In the Python console (Ctrl+Alt+C -> py), execute the following lines:
app = adsk.core.Application.get()
t = app.activeProduct.rootComponent.sketches[0].sketchTexts[0]
t.height
3.0
t.text="new"
t.height
1.0
t.height=3.0
t.height
1.0
This breaks my ParametricText add-in \o/. Issue: https://github.com/thomasa88/ParametricText/issues/21
I think you broke something similar with text spacing in December 2020. https://forums.autodesk.com/t5/fusion-360-api-and-scripts/cannot-select-shx-fonts-on-sketchtext-obje...