- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the API, I'm trying to edit a fittedSpline to add/edit/remove points pragmatically. While editing/removing sketchFittedSpline.fitPoints works fine, via the SketchPoint.deleteMe() and SketchPoint.move() methods. SketchPointList offers no way to add a new SketchPoint.
Any attempts to do it via any python List.* methods usually result in crashing Fusion360, entirely. This includes list.insert, list.append, etc. It would also seem that SketchPoints cannot be deleted in this fashion, either.
In the GUI, there's clearly an "Insert Spline Fit Point" that can add a new, editable fit point to an existing spline. Since the fitPoints SketchPointList is readonly, there is no way to simply generate/replace the list itself - that would mean I can only delete/replace to add detail to a curve. This seems like an oversight...I just need to insert a new fit point! Is there another way?
Solved! Go to Solution.