<?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 Modify leads and links after toolpath generation in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13862285#M22288</link>
    <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue with Lead and Link Parameters in Toolpath Templates&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm running into a limitation with toolpath generation that I’m hoping someone can help clarify or offer a workaround for.&lt;/P&gt;&lt;P&gt;The toolpath I'm working with requires specific &lt;STRONG&gt;Lead and Link&lt;/STRONG&gt; parameters to be set in order to generate correctly. However, these settings are only available through the &lt;STRONG&gt;Modify Leads and Links&lt;/STRONG&gt; menu—they're not accessible directly within the main toolpath form.&lt;/P&gt;&lt;P&gt;The bigger issue is that when I save the toolpath as a &lt;STRONG&gt;template&lt;/STRONG&gt;, the customized Lead and Link settings don’t carry over. So when I apply the template later, I have to manually reconfigure those settings each time.&lt;/P&gt;&lt;P&gt;I’m wondering if there’s a way to handle this using the &lt;STRONG&gt;API&lt;/STRONG&gt;—perhaps by editing the toolpath links &lt;EM&gt;after&lt;/EM&gt; the toolpath has been generated? Has anyone had success automating this part of the workflow?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToolpathSetting-Linking.png" style="width: 564px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581029i7AB1D8E6E204F08A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ToolpathSetting-Linking.png" alt="ToolpathSetting-Linking.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Available Lead/Link parameters within the Modify Lead and Links form" style="width: 549px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581025i07DE9C816EA52AE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ModifyToolpath-Leads and Links.png" alt="Available Lead/Link parameters within the Modify Lead and Links form" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Available Lead/Link parameters within the Modify Lead and Links form&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2025 14:31:06 GMT</pubDate>
    <dc:creator>Adam_Popma</dc:creator>
    <dc:date>2025-10-22T14:31:06Z</dc:date>
    <item>
      <title>Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13862285#M22288</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue with Lead and Link Parameters in Toolpath Templates&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm running into a limitation with toolpath generation that I’m hoping someone can help clarify or offer a workaround for.&lt;/P&gt;&lt;P&gt;The toolpath I'm working with requires specific &lt;STRONG&gt;Lead and Link&lt;/STRONG&gt; parameters to be set in order to generate correctly. However, these settings are only available through the &lt;STRONG&gt;Modify Leads and Links&lt;/STRONG&gt; menu—they're not accessible directly within the main toolpath form.&lt;/P&gt;&lt;P&gt;The bigger issue is that when I save the toolpath as a &lt;STRONG&gt;template&lt;/STRONG&gt;, the customized Lead and Link settings don’t carry over. So when I apply the template later, I have to manually reconfigure those settings each time.&lt;/P&gt;&lt;P&gt;I’m wondering if there’s a way to handle this using the &lt;STRONG&gt;API&lt;/STRONG&gt;—perhaps by editing the toolpath links &lt;EM&gt;after&lt;/EM&gt; the toolpath has been generated? Has anyone had success automating this part of the workflow?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToolpathSetting-Linking.png" style="width: 564px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581029i7AB1D8E6E204F08A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ToolpathSetting-Linking.png" alt="ToolpathSetting-Linking.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Available Lead/Link parameters within the Modify Lead and Links form" style="width: 549px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581025i07DE9C816EA52AE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ModifyToolpath-Leads and Links.png" alt="Available Lead/Link parameters within the Modify Lead and Links form" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Available Lead/Link parameters within the Modify Lead and Links form&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 14:31:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13862285#M22288</guid>
      <dc:creator>Adam_Popma</dc:creator>
      <dc:date>2025-10-22T14:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13864074#M22290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17780986"&gt;@Adam_Popma&lt;/a&gt;&amp;nbsp;-San.&lt;BR /&gt;&lt;BR /&gt;I created a sample that switches the RetractionPolicy between “minimum” and “shortest”.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Fusion360API Python script

import traceback
import adsk.core as core
import adsk.cam as cam

def run(context):
    ui: core.UserInterface = None
    try:
        app: core.Application = core.Application.get()
        ui = app.userInterface

        camObj: cam.CAM = app.activeProduct

        setup: cam.Setup = camObj.setups[0]
        ope: cam.Operation = setup.operations[0]
        prm = ope.parameters.itemByName("retractionPolicy")
        if prm.value.value == "minimum":
            prm.value.value = "shortest"
        else:
            prm.value.value = "minimum"

        ui.messageBox(f"RetractionPolicy: {prm.value.value}")

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Oct 2025 14:36:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13864074#M22290</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2025-10-23T14:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13906156#M22364</link>
      <description>&lt;P&gt;I believe he is asking if the leads and links modification that is part of the machining extension is available through the API. I may be mistaken, but I believe your code here only modifies the retraction policy on the "base" toolpath, before any modifications have been applied. And I believe he is applying the modification because the base toolpath parameters are giving an undesired result&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 15:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13906156#M22364</guid>
      <dc:creator>Chris.Barnes.ADSK</dc:creator>
      <dc:date>2025-11-15T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13906821#M22368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4158639"&gt;@Chris.Barnes.ADSK&lt;/a&gt;&amp;nbsp;-san.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I misunderstood.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kandennti_0-1763302622805.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1596427iC5A8005752C51AA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kandennti_0-1763302622805.png" alt="kandennti_0-1763302622805.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Although the parameter name here is “entry_type”, I was unable to retrieve it using `cam.Operation.parameters.itemByName(“entry_type”)`.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kandennti_1-1763302643635.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1596428i85BEFC40521F395F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kandennti_1-1763302643635.png" alt="kandennti_1-1763302643635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we assume that the parameter currently set to “System Default: isParentStrategyHSM” is not supported?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 14:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/13906821#M22368</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2025-11-16T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085500#M22706</link>
      <description>&lt;P&gt;Adam did you ever find a solution? I am trying to do the same thing. Store a tool op as a toolpath but also bring with it my modifications to lead ins and outs. I've had no luck.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 13:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085500#M22706</guid>
      <dc:creator>alexDXZRG</dc:creator>
      <dc:date>2026-04-10T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085586#M22707</link>
      <description>&lt;P&gt;No, I have not. From my understanding, some of the toolpath algorithms are ran through ModuleWorks, some through fusion. Currently fusion can't modify some of the toolpath parameters from ModuleWorks until after the toolpath is calculated. That is why the available lead/link settings to modify differs for during toolpath calculation vs after its generated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I may be inaccurate on this, that was just my general understanding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 14:30:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085586#M22707</guid>
      <dc:creator>Adam_Popma</dc:creator>
      <dc:date>2026-04-10T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085643#M22708</link>
      <description>&lt;P&gt;Thanks for the update. Very silly that this doesn't work considering you can copy and paste a tool op and the modification carry with it. My current workaround is to have a blank part file with a setup that has the tool operations with modifications and I just copy and paste from that file into whatever I am working on. Very annoying and breaks my workflow a little but at least it works. Have you figured out a better way?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 15:13:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085643#M22708</guid>
      <dc:creator>alexDXZRG</dc:creator>
      <dc:date>2026-04-10T15:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085668#M22709</link>
      <description>&lt;P&gt;Unfortunately I have not found a better way. I didn't know that you could copy a toolpath from one file to another, so that's good to know, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 15:37:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085668#M22709</guid>
      <dc:creator>Adam_Popma</dc:creator>
      <dc:date>2026-04-10T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modify leads and links after toolpath generation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085672#M22710</link>
      <description>&lt;P&gt;Hey I'm glad I could kinda help lol. I get better results with the ctrl+c and ctrl+v btw. You can also shift select multiple tool operations and past them in case you're trying to move a whole setup.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 15:43:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modify-leads-and-links-after-toolpath-generation/m-p/14085672#M22710</guid>
      <dc:creator>alexDXZRG</dc:creator>
      <dc:date>2026-04-10T15:43:18Z</dc:date>
    </item>
  </channel>
</rss>

