<?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 Re: Number ncprogram with $ count +1 in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791781#M15557</link>
    <description>&lt;P&gt;Hi Karbidhegyu;&lt;A id="link_12" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6646104" target="_self"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The macro&lt;SPAN&gt;&amp;nbsp;works perfectly!!!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,thanks.thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 07:29:12 GMT</pubDate>
    <dc:creator>Euroutil</dc:creator>
    <dc:date>2019-05-15T07:29:12Z</dc:date>
    <item>
      <title>Number ncprogram with $ count +1</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791666#M15555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to renumber the nc programs but the macro that I created starts with the assigned number plus one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Desired Ncprogram.png" style="width: 613px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/636568i816CFF90BCE8D1B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Desired Ncprogram.png" alt="Desired Ncprogram.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="After runnig the macro.png" style="width: 517px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/636569iA1746B6B55BBD931/image-size/large?v=v2&amp;amp;px=999" role="button" title="After runnig the macro.png" alt="After runnig the macro.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could someone help me solve this little problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;attached macro and images;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//ESTA MACRO NUMERA LOS NCPROGRAMS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reset localvars&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;//Comprueba si deseas numerar los NCPrograms&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;string yesorno = "Click SI,para renumerar Ncprograms." + crlf + "Click NO,para cancelar la macro"&lt;BR /&gt;bool yes = 0 &lt;BR /&gt;$yes = QUERY $yesorno&lt;/P&gt;
&lt;P&gt;IF yes {&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;STRING $nombre = ""&lt;/P&gt;
&lt;P&gt;INT $COUNT = INPUT "Introduce numero de programa"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;// Numerar todos los Ncprograms o solo las seleccionadas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;string allorno = "Click SI,para numerar todos los Ncprograms." + crlf + "Click NO,otras opciones"&lt;BR /&gt;bool yes = 0 &lt;BR /&gt;$yes = QUERY $allorno&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF $yes == 1 {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Numerar todos los Ncprograms&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOREACH Ncp IN folder('NCProgram') { &lt;BR /&gt;ACTIVATE NCPROGRAM $Ncp.name&lt;BR /&gt;$COUNT = $COUNT + 1 &lt;BR /&gt;STRING NewName = ($nombre + $COUNT)&lt;BR /&gt;RENAME NCPROGRAM ; $NewName &lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 06:31:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791666#M15555</guid>
      <dc:creator>Euroutil</dc:creator>
      <dc:date>2019-05-15T06:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Number ncprogram with $ count +1</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791729#M15556</link>
      <description>&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;FOREACH Ncp IN folder('NCProgram') { &lt;BR /&gt;ACTIVATE NCPROGRAM $Ncp.name&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&lt;STRIKE&gt;$COUNT = $COUNT + 1&lt;/STRIKE&gt;&lt;/FONT&gt; &lt;BR /&gt;STRING NewName = ($nombre + $COUNT)&lt;BR /&gt;&lt;FONT color="#00ff00"&gt;$COUNT = $COUNT + 1&lt;/FONT&gt; &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;BR /&gt;RENAME NCPROGRAM ; $NewName &lt;BR /&gt;}&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2019 07:06:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791729#M15556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-15T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Number ncprogram with $ count +1</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791781#M15557</link>
      <description>&lt;P&gt;Hi Karbidhegyu;&lt;A id="link_12" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6646104" target="_self"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The macro&lt;SPAN&gt;&amp;nbsp;works perfectly!!!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,thanks.thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 07:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/number-ncprogram-with-count-1/m-p/8791781#M15557</guid>
      <dc:creator>Euroutil</dc:creator>
      <dc:date>2019-05-15T07:29:12Z</dc:date>
    </item>
  </channel>
</rss>

