<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API: sketch.move() throws RuntimeError on downstream feature errors, but native Move/Copy tool completes operation in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/api-sketch-move-throws-runtimeerror-on-downstream-feature-errors/m-p/14036551#M22629</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing an Add-in that moves sketch entities. When using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sketch.move()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and the operation causes downstream features (like Extrude, Fillet) to fail, the API throws a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;RuntimeError&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;the entire operation is cancelled&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;However, the native&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Move/Copy&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tool in Fusion behaves differently:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The move operation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;completes successfully&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Downstream errors are shown in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Feature Health panel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Failed features turn&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;yellow/red&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the Timeline&lt;/LI&gt;&lt;LI&gt;User can decide to fix errors later or Undo&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My question:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is there a way to make&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sketch.move()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;behave like the native tool - complete the operation and report errors through Feature Health instead of throwing an exception?&lt;/P&gt;&lt;P&gt;I've searched for options like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;suppressErrors,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;allowComputeErrors, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;isComputeDeferred&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but couldn't find anything in the API.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import adsk.core
import adsk.fusion
import adsk.cam
import traceback

def run(context):
    app = adsk.core.Application.get()
    ui = app.userInterface
    
    try:
        design = adsk.fusion.Design.cast(app.activeProduct)
        if not design:
            ui.messageBox('No active design')
            return
        
        # Get first sketch (must have dependent features like Extrude)
        if design.rootComponent.sketches.count == 0:
            ui.messageBox('No sketches in design')
            return
        
        sketch = design.rootComponent.sketches.item(0)
        
        # Collect all sketch entities
        collection = adsk.core.ObjectCollection.create()
        for curve in sketch.sketchCurves:
            collection.add(curve)
        for point in sketch.sketchPoints:
            if not point.isFixed:
                collection.add(point)
        
        # Create transform (move 5cm in Z)
        transform = adsk.core.Matrix3D.create()
        transform.translation = adsk.core.Vector3D.create(0, 0, 5.0)
        
        # This throws RuntimeError if downstream features fail
        sketch.move(collection, transform)
        
        ui.messageBox('Move completed successfully')
        
    except RuntimeError as e:
        # Operation is cancelled, nothing moved
        ui.messageBox(f'RuntimeError - operation cancelled:\n\n{e}')
    except:
        ui.messageBox(traceback.format_exc())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a simple design:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a sketch with a rectangle&lt;/LI&gt;&lt;LI&gt;Extrude it&lt;/LI&gt;&lt;LI&gt;Add fillets to edges&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run the script above&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Expected (like native tool):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Sketch moves, errors shown in Feature Health panel&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Actual:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;RuntimeError thrown, sketch not moved at all&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;---------------------------&lt;BR /&gt;Error Show&lt;BR /&gt;---------------------------&lt;BR /&gt;RuntimeError - operation cancelled:&lt;/P&gt;&lt;P&gt;3 : Extrude1 / Compute Failed // NO_TARGET_BODY - No target body!&lt;BR /&gt;Fillet1 / 1 Reference Failures The edge reference is lost and this feature is using cached geometry. Edit this feature and select new edge references. // EDGE_REFERENCE_LOST - Edge 1 missing / Compute Failed // FILLET_NO_EDGE_FOUND - No fillet edge found.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Feb 2026 06:47:46 GMT</pubDate>
    <dc:creator>mahmoud_parsipour_fr</dc:creator>
    <dc:date>2026-02-28T06:47:46Z</dc:date>
    <item>
      <title>API: sketch.move() throws RuntimeError on downstream feature errors, but native Move/Copy tool completes operation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/api-sketch-move-throws-runtimeerror-on-downstream-feature-errors/m-p/14036551#M22629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing an Add-in that moves sketch entities. When using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sketch.move()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and the operation causes downstream features (like Extrude, Fillet) to fail, the API throws a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;RuntimeError&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;the entire operation is cancelled&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;However, the native&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Move/Copy&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tool in Fusion behaves differently:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The move operation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;completes successfully&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Downstream errors are shown in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Feature Health panel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Failed features turn&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;yellow/red&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the Timeline&lt;/LI&gt;&lt;LI&gt;User can decide to fix errors later or Undo&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My question:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is there a way to make&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sketch.move()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;behave like the native tool - complete the operation and report errors through Feature Health instead of throwing an exception?&lt;/P&gt;&lt;P&gt;I've searched for options like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;suppressErrors,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;allowComputeErrors, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;isComputeDeferred&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but couldn't find anything in the API.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import adsk.core
import adsk.fusion
import adsk.cam
import traceback

def run(context):
    app = adsk.core.Application.get()
    ui = app.userInterface
    
    try:
        design = adsk.fusion.Design.cast(app.activeProduct)
        if not design:
            ui.messageBox('No active design')
            return
        
        # Get first sketch (must have dependent features like Extrude)
        if design.rootComponent.sketches.count == 0:
            ui.messageBox('No sketches in design')
            return
        
        sketch = design.rootComponent.sketches.item(0)
        
        # Collect all sketch entities
        collection = adsk.core.ObjectCollection.create()
        for curve in sketch.sketchCurves:
            collection.add(curve)
        for point in sketch.sketchPoints:
            if not point.isFixed:
                collection.add(point)
        
        # Create transform (move 5cm in Z)
        transform = adsk.core.Matrix3D.create()
        transform.translation = adsk.core.Vector3D.create(0, 0, 5.0)
        
        # This throws RuntimeError if downstream features fail
        sketch.move(collection, transform)
        
        ui.messageBox('Move completed successfully')
        
    except RuntimeError as e:
        # Operation is cancelled, nothing moved
        ui.messageBox(f'RuntimeError - operation cancelled:\n\n{e}')
    except:
        ui.messageBox(traceback.format_exc())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a simple design:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a sketch with a rectangle&lt;/LI&gt;&lt;LI&gt;Extrude it&lt;/LI&gt;&lt;LI&gt;Add fillets to edges&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run the script above&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Expected (like native tool):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Sketch moves, errors shown in Feature Health panel&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Actual:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;RuntimeError thrown, sketch not moved at all&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;---------------------------&lt;BR /&gt;Error Show&lt;BR /&gt;---------------------------&lt;BR /&gt;RuntimeError - operation cancelled:&lt;/P&gt;&lt;P&gt;3 : Extrude1 / Compute Failed // NO_TARGET_BODY - No target body!&lt;BR /&gt;Fillet1 / 1 Reference Failures The edge reference is lost and this feature is using cached geometry. Edit this feature and select new edge references. // EDGE_REFERENCE_LOST - Edge 1 missing / Compute Failed // FILLET_NO_EDGE_FOUND - No fillet edge found.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2026 06:47:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/api-sketch-move-throws-runtimeerror-on-downstream-feature-errors/m-p/14036551#M22629</guid>
      <dc:creator>mahmoud_parsipour_fr</dc:creator>
      <dc:date>2026-02-28T06:47:46Z</dc:date>
    </item>
  </channel>
</rss>

