<?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 Tool class reference for getPierceHeight in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12129991#M3181</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a post processor for a plasma machine that I developed that I'm now updating to pull in data from the tool library rather than the Post Processor user dialog but I'm having trouble accessing the&amp;nbsp;PierceHeight value of the saved tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for this change is so that I can set up different tools for different materials so that I can take advantage of setting different pierce heights and feed rates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to successfully access the feed rate from the tool using the following syntax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var f = 'F'+(hasParameter("operation:tool_feedEntry") ? getParameter("operation:tool_feedEntry") : toPreciseUnit(1000, MM));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But trying to use the same syntax to access the PierceHeight value returns an undefined value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var f = 'F'+(hasParameter("operation:tool_PierceHeight") ? getParameter("operation:tool_PierceHeight") : toPreciseUnit(1000, MM));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I can see, whilst the the PierceHeight is listed as a member function in the API reference -&amp;nbsp;&lt;A href="https://cam.autodesk.com/posts/reference/classTool.html" target="_blank"&gt;https://cam.autodesk.com/posts/reference/classTool.html&lt;/A&gt;&amp;nbsp;- It is not actually available to the post processor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone shed some light on this? I'm hopeful that I simply have the syntax incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original post processor is accessible here -&amp;nbsp;&lt;A href="https://github.com/DeeEmm/DDCSV11-Plasma/blob/main/DDCSV11-Plasma.cps" target="_blank"&gt;https://github.com/DeeEmm/DDCSV11-Plasma/blob/main/DDCSV11-Plasma.cps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/DM&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 07:36:08 GMT</pubDate>
    <dc:creator>DeeEmm</dc:creator>
    <dc:date>2023-07-27T07:36:08Z</dc:date>
    <item>
      <title>Tool class reference for getPierceHeight</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12129991#M3181</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a post processor for a plasma machine that I developed that I'm now updating to pull in data from the tool library rather than the Post Processor user dialog but I'm having trouble accessing the&amp;nbsp;PierceHeight value of the saved tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for this change is so that I can set up different tools for different materials so that I can take advantage of setting different pierce heights and feed rates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to successfully access the feed rate from the tool using the following syntax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var f = 'F'+(hasParameter("operation:tool_feedEntry") ? getParameter("operation:tool_feedEntry") : toPreciseUnit(1000, MM));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But trying to use the same syntax to access the PierceHeight value returns an undefined value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var f = 'F'+(hasParameter("operation:tool_PierceHeight") ? getParameter("operation:tool_PierceHeight") : toPreciseUnit(1000, MM));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I can see, whilst the the PierceHeight is listed as a member function in the API reference -&amp;nbsp;&lt;A href="https://cam.autodesk.com/posts/reference/classTool.html" target="_blank"&gt;https://cam.autodesk.com/posts/reference/classTool.html&lt;/A&gt;&amp;nbsp;- It is not actually available to the post processor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone shed some light on this? I'm hopeful that I simply have the syntax incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original post processor is accessible here -&amp;nbsp;&lt;A href="https://github.com/DeeEmm/DDCSV11-Plasma/blob/main/DDCSV11-Plasma.cps" target="_blank"&gt;https://github.com/DeeEmm/DDCSV11-Plasma/blob/main/DDCSV11-Plasma.cps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/DM&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 07:36:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12129991#M3181</guid>
      <dc:creator>DeeEmm</dc:creator>
      <dc:date>2023-07-27T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tool class reference for getPierceHeight</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12130211#M3182</link>
      <description>&lt;P&gt;Thought I'd found the solution but alas not&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;getParameter("operation:tool_PierceHeight")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;getParameter("operation:tool_pierceHeight")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still stuck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 09:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12130211#M3182</guid>
      <dc:creator>DeeEmm</dc:creator>
      <dc:date>2023-07-27T09:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tool class reference for getPierceHeight</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12130313#M3183</link>
      <description>&lt;P&gt;Ok some success with a little help from the following post...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-manufacture/why-does-the-tool-information-not-update-the-post-properties/m-p/11618018/highlight/true#M131484" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-360-manufacture/why-does-the-tool-information-not-update-the-post-properties/m-p/11618018/highlight/true#M131484&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the syntax allows this to run okay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  if(hasParameter("operation:tool_pierceHeight")) {
      pHeight = getParameter("operation:tool_pierceHeight");
      writeComment("From here onwards using pierceHeight value from tool");
    } else {
      pHeight = properties.plasmaPierceHeight
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not really sure why the shorthand form was failing but at any rate it is now working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 10:13:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/tool-class-reference-for-getpierceheight/m-p/12130313#M3183</guid>
      <dc:creator>DeeEmm</dc:creator>
      <dc:date>2023-07-27T10:13:52Z</dc:date>
    </item>
  </channel>
</rss>

