<?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>tema Re: Create toolpath feature automatic when press OK en FeatureCAM Forum</title>
    <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7487288#M1597</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It becomes a little bit more complicated to delete the toolpath feature because the macro will not know which toolpath feature one to delete, especially if the OK button is pressed more than once. My recommendation would be to have two macro's and two buttons. One to delete the feature and one to create it. This would allow you to pass a variable from one to the other to say whether it had been created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've done some checking and it looks like we can't access the tool usage tab with the API language. I will check with development and if this functionality isn't currently available, I will create a new feature request and assign your details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 14:52:24 GMT</pubDate>
    <dc:creator>spencer.hardcastle</dc:creator>
    <dc:date>2017-10-24T14:52:24Z</dc:date>
    <item>
      <title>Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486273#M1588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there someone there can help me with the code to add a "toolpath feature" when I press OK in my macro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The toolpath feature should in the same press be assigned to lower turret:-)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; hopefully,&lt;/P&gt;
&lt;P&gt;Jacob&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486273#M1588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T09:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486334#M1589</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What type of toolpath feature are you wanting to create?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code below shows how to add a generic toolpath feature with no movements or text inside.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; doc &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FMDocument&lt;/SPAN&gt;
    &lt;SPAN&gt;Set&lt;/SPAN&gt; doc = &lt;SPAN&gt;Application.ActiveDocument&lt;/SPAN&gt;

    &lt;SPAN&gt;Dim&lt;/SPAN&gt; tpf &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FMToolpathFeature&lt;/SPAN&gt;
    &lt;SPAN&gt;Set&lt;/SPAN&gt; tpf = doc&lt;SPAN&gt;.Features.AddToolpath&lt;/SPAN&gt;(&lt;SPAN&gt;eST_Milling&lt;/SPAN&gt;,&lt;SPAN&gt;eTG_All&lt;/SPAN&gt;,0,0,0,&lt;SPAN&gt;"error message"&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps! If this answers your question, please select "&lt;EM&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:54:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486334#M1589</guid>
      <dc:creator>spencer.hardcastle</dc:creator>
      <dc:date>2017-10-24T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486366#M1590</link>
      <description>&lt;P&gt;Hi Spencer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look in the macro, this I need is add a toolpath feature there are assignet to lower turret.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you press clear data then you delete the number in P90 and close the box&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jacob&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:05:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486366#M1590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486544#M1594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find attached a new macro, which sets post word 90 and creates a toolpath feature when you press OK. This toolpath feature doesn't contain any toolpaths or text. This will need to be done as well.&lt;/P&gt;
&lt;P&gt;If you press clear data, it clears post word 90, and sets it to nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps! If this answers your query, please select "&lt;EM&gt;&lt;STRONG&gt;Accept as Solution"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:15:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486544#M1594</guid>
      <dc:creator>spencer.hardcastle</dc:creator>
      <dc:date>2017-10-24T11:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486603#M1595</link>
      <description>&lt;P&gt;Hi Spencer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's great. Minor things could we do as we press "clear data" then delete the toolpath feature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the toolpath feature should be turning so we can assign then to lower turret wtih the add-in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jacob&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:40:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7486603#M1595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T11:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7487288#M1597</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It becomes a little bit more complicated to delete the toolpath feature because the macro will not know which toolpath feature one to delete, especially if the OK button is pressed more than once. My recommendation would be to have two macro's and two buttons. One to delete the feature and one to create it. This would allow you to pass a variable from one to the other to say whether it had been created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've done some checking and it looks like we can't access the tool usage tab with the API language. I will check with development and if this functionality isn't currently available, I will create a new feature request and assign your details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 14:52:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7487288#M1597</guid>
      <dc:creator>spencer.hardcastle</dc:creator>
      <dc:date>2017-10-24T14:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolpath feature automatic when press OK</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7489192#M1601</link>
      <description>&lt;P&gt;Hi Spencer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add a NC comment in the macro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jacob&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 07:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/create-toolpath-feature-automatic-when-press-ok/m-p/7489192#M1601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T07:42:40Z</dc:date>
    </item>
  </channel>
</rss>

