Message 1 of 3
formFeatures.add() hard crashes fusion, when in direct editing mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing a subd- to tspline converter that allows converting tspline objects back and fourth to subd. i am trying to do TSplineBodies.addByTSMDescription, but in order to access it, i have to have a form feature created. I need the t-spline body to be "live" as it is, when regularly working with tspline bodies in direct editing mode (enabling and disabling timeline for the import works, however i loose the editable tspline, as it gets converted to Brep, when formFeature finishes).
The ui route for adding a Tspline body with a .tsm file also works in direct mode (the insert T-spline command), but .tsm it is not exposed through the importManager [adding tsm support in the import manager would probably be an easier and more elegant fix]
adding a script, that causes fusion to crash if timeline is dissabled
import adsk.core, adsk.fusion, traceback
The ui route for adding a Tspline body with a .tsm file also works in direct mode (the insert T-spline command), but .tsm it is not exposed through the importManager [adding tsm support in the import manager would probably be an easier and more elegant fix]
adding a script, that causes fusion to crash if timeline is dissabled
import adsk.core, adsk.fusion, traceback
def run(context😞
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
root = design.rootComponent
#fusion hard crashes if executed in direct/no timeline mode), while works fine in parametric
root.features.formFeatures.add()
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
p.s. [pipe feature also crashes in direct mode, however i overcame that with a sweep].
p.s. [pipe feature also crashes in direct mode, however i overcame that with a sweep].
zozeorswaf