SweepFeature path access errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When a SweepFeature's path has been deleted, I get an error when attempting to set the path member of the SweepFeature object (note that spline is a SketchFittedSpline that was created to replace the original path):
if obj.objectType == adsk.fusion.SweepFeature.classType():
path = adsk.fusion.Path.create(spline, adsk.fusion.ChainedCurveOptions.noChainedCurves)
obj.timelineObject.rollTo(True)
obj.path = path
Traceback (most recent call last):
File "C:/Users/alan/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Scripts/SplineModificationTest/SplineModificationTest.py", line 35, in run
obj.path = path
File "C:\Users/alan/AppData/Local/Autodesk/webdeploy/production/19107935ce2ad08720646cb4a31efe37d8a5f41b/Api/Python/packages\adsk\fusion.py", line 66391, in _set_path
return _fusion.SweepFeature__set_path(self, value)
RuntimeError: 2 : InternalValidationError : curPath
If I want to update a SweepFeature that's been invalidated by other operations, am I just out of luck?
(I also get a similar error if I instead attempt to get the current path from the invalidated SweepFeature; I would expect it to return None.)
Thanks in advance!