<?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: How To Add Line Numbers at Tool Changes? in Fusion Manufacture Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8079272#M120213</link>
    <description>&lt;P&gt;Copy the Fanuc post to your personal/local posts folder and change line 1117 to this:&lt;/P&gt;&lt;PRE&gt;    if (!properties.showSequenceNumbers) {
      writeBlock("N" + (sequenceNumber % 10000), "T" + toolFormat.format(tool.number), mFormat.format(6));
      sequenceNumber += properties.sequenceNumberIncrement;
    } else {
        writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will only number the tool changes when you turn off sequence numbers. You can also change line 44 to&amp;nbsp;showSequenceNumbers: false so your newly modified post will default to your desired behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the attached modified Fanuc post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 02:44:59 GMT</pubDate>
    <dc:creator>randyT9V9C</dc:creator>
    <dc:date>2018-06-20T02:44:59Z</dc:date>
    <item>
      <title>How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8072913#M120206</link>
      <description>&lt;P&gt;On our other CAM system it's puts a line number at every tool change.&amp;nbsp; &amp;nbsp;We don't use numbers except for that.&amp;nbsp; &amp;nbsp;For example right before a M6T2 it will place N2000.&amp;nbsp; &amp;nbsp; We use these for restarting.&amp;nbsp; &amp;nbsp;I'm using the generic Fanuc post.&amp;nbsp; Is there anyway to do this?&amp;nbsp; Or can I add the code before I post process with Manual NC?&amp;nbsp; &amp;nbsp;I can't seem to get it to work any which way.&amp;nbsp; &amp;nbsp;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 22:19:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8072913#M120206</guid>
      <dc:creator>utekcnc</dc:creator>
      <dc:date>2018-06-16T22:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8073161#M120207</link>
      <description>&lt;P&gt;I implemented this in one of my posts using a couple user parameters in my post processor. Looking at the code tonight it could be done&amp;nbsp;without the numberOperations switch and simply turn it on if&amp;nbsp;showSequenceNumbers == false. Maybe this will get you pointed in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  if (hasParameter("operation-comment")) {
    var comment = getParameter("operation-comment");
    if (comment &amp;amp;&amp;amp; properties.numberOperations &amp;amp;&amp;amp; properties.showSequenceNumbers == false) {
      writeWords2("N" + (sequenceNumber % 10000), ";(" + comment +")");
      sequenceNumber += properties.sequenceNumberIncrement;
    } else if (comment) {
        writeComment(comment);
        }
    }&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Jun 2018 06:12:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8073161#M120207</guid>
      <dc:creator>randyT9V9C</dc:creator>
      <dc:date>2018-06-17T06:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8074799#M120208</link>
      <description>&lt;P&gt;Ok, I'll take a look.&amp;nbsp; I've never messed with things inside the post, so hope I don't mess something up.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 12:51:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8074799#M120208</guid>
      <dc:creator>utekcnc</dc:creator>
      <dc:date>2018-06-18T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8074898#M120209</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2598091"&gt;@utekcnc&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure you make a copy of your Post and save it somewhere on your computer before making any alterations, that way you can easily paste it back into your Post library and be back to where you started from &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:27:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8074898#M120209</guid>
      <dc:creator>engineguy</dc:creator>
      <dc:date>2018-06-18T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8075162#M120210</link>
      <description>&lt;P&gt;Well, I looked at that and couldn't make heads or tails of it.&amp;nbsp; &amp;nbsp;I'll have to study it sometime I guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 14:44:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8075162#M120210</guid>
      <dc:creator>utekcnc</dc:creator>
      <dc:date>2018-06-18T14:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8075418#M120211</link>
      <description>&lt;P&gt;Which Fanuc post are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 15:54:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8075418#M120211</guid>
      <dc:creator>randyT9V9C</dc:creator>
      <dc:date>2018-06-18T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8075433#M120212</link>
      <description>FANUC/fanuc&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2018 15:57:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8075433#M120212</guid>
      <dc:creator>utekcnc</dc:creator>
      <dc:date>2018-06-18T15:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8079272#M120213</link>
      <description>&lt;P&gt;Copy the Fanuc post to your personal/local posts folder and change line 1117 to this:&lt;/P&gt;&lt;PRE&gt;    if (!properties.showSequenceNumbers) {
      writeBlock("N" + (sequenceNumber % 10000), "T" + toolFormat.format(tool.number), mFormat.format(6));
      sequenceNumber += properties.sequenceNumberIncrement;
    } else {
        writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will only number the tool changes when you turn off sequence numbers. You can also change line 44 to&amp;nbsp;showSequenceNumbers: false so your newly modified post will default to your desired behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the attached modified Fanuc post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 02:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8079272#M120213</guid>
      <dc:creator>randyT9V9C</dc:creator>
      <dc:date>2018-06-20T02:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8081159#M120214</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp; I will take a look in a day or two and see if I can do this per your instructions.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 18:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8081159#M120214</guid>
      <dc:creator>utekcnc</dc:creator>
      <dc:date>2018-06-20T18:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8084952#M120215</link>
      <description>&lt;P&gt;This worked in the part that it adds numbers at each tool change.&amp;nbsp; &amp;nbsp;Is there a way however that the N number would match the tool number?&amp;nbsp; &amp;nbsp;For example, If I'm using tool 9 it would say N9 or N9000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 10:30:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8084952#M120215</guid>
      <dc:creator>utekcnc</dc:creator>
      <dc:date>2018-06-22T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How To Add Line Numbers at Tool Changes?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8085442#M120216</link>
      <description>&lt;P&gt;Change the statement to use&amp;nbsp;tool.number for your block number on the if statement starting on line 1117:&lt;/P&gt;&lt;PRE&gt;    if (!properties.showSequenceNumbers) {
      writeBlock("N" + (tool.number), "T" + toolFormat.format(tool.number), mFormat.format(6));
    } else {
        writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));
    }&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jun 2018 13:37:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-to-add-line-numbers-at-tool-changes/m-p/8085442#M120216</guid>
      <dc:creator>randyT9V9C</dc:creator>
      <dc:date>2018-06-22T13:37:43Z</dc:date>
    </item>
  </channel>
</rss>

