Message 1 of 1
Sketch.referencePlane Property Functionality Changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an add-in that has been used successfully for more than a year now and recently started seeing an error within on of my functions when attempting to get the reference plane for a sketch. Below is the error, which indicates that I need to roll back before the sketch is created to get the sketch plane. Is this an intended change and if so is it documented anywhere?
File "C:\Users/ALDEN/fusion-add-in\commands\modeling\generate_laser_features.py", line 1038, in get_centerpoints
sketch_plane = centerpoint_sketch.referencePlane # Get plane sketch was created on to add another sketch to later
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/ALDEN/AppData/Local/Autodesk/webdeploy/production/f0877c667ada77b44502b5b3316b697a2ba18ad4/Api/Python/packages\adsk\fusion.py", line 68638, in _get_referencePlane
return _fusion.Sketch__get_referencePlane(self)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
RuntimeError: 3 : referencePlane is a BRefFace - need to roll timeline back before sketch