<?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: Need Help With Macro to add notes to nc program set up sheet in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12832277#M1684</link>
    <description>&lt;P&gt;For anyone interested, here is the final result. This will add your datum location to the ncprogram user defined notes, which will show in your set up sheets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again Sean for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Adds notes to "NCPROGRAMS USER DEFINED NOTES"&lt;/P&gt;&lt;P&gt;EDIT PAGE NCPROGRAMNOTES1&lt;/P&gt;&lt;P&gt;QUIT FORM NCPROGRAMNOTES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//CREATES X&lt;/P&gt;&lt;P&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY A[] = {"Left","Center","Right"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT X = INPUT CHOICE $A "Select X Location?"&lt;/P&gt;&lt;P&gt;// Create Build the Note as a string&lt;BR /&gt;STRING ncNote1 = "X " + $A[$X]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//CREATES Y&lt;BR /&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY B[] = {"Front","Center","Back"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT Y = INPUT CHOICE $B "Select Y Location?"&lt;/P&gt;&lt;P&gt;// Create Build the Note as a string&lt;BR /&gt;STRING ncNote2 = "Y " + $B[$Y]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//CREATES Z&lt;BR /&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY C[] = {"Top","Centered","Bottom"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT Z = INPUT CHOICE $C "Select Z Location?"&lt;/P&gt;&lt;P&gt;// Create Build the Note as a string&lt;BR /&gt;STRING ncNote3 = "Z " + $C[$Z]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// ADDS MULTIPLE VARIBLES TOGETHER FOR FINAL STRING&lt;BR /&gt;STRING ncNotes = $ncNote1+","+" "+ncNote2+","+" "+ncNote3&lt;/P&gt;&lt;P&gt;// Set the notes equal to the $ncNotes variable&lt;BR /&gt;EDIT NCPROGRAM ; NOTES $ncNotes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 13:19:20 GMT</pubDate>
    <dc:creator>josh.cowley.ctd</dc:creator>
    <dc:date>2024-06-11T13:19:20Z</dc:date>
    <item>
      <title>Need Help With Macro to add notes to nc program set up sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12828676#M1681</link>
      <description>&lt;P&gt;Can anyone help and explain to me what I'm doing wrong here? I am defiantly a macro noob and really want to get better at them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a macro to write my datum locations to the nc program notes so I don't have to retype it every job for the guys in the shop to get more clarification of location&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;DIALOGS ERROR OFF&lt;/P&gt;&lt;P&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY A[] = {"Top","Centered","Bottom"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT Z = INPUT CHOICE $A "Select Z Location?"&lt;/P&gt;&lt;P&gt;//CHOOSES Z OPTION 1&lt;BR /&gt;if $z == 0 {&lt;BR /&gt;TOP&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//CHOOSES Z OPTION 2&lt;BR /&gt;} elseif $z == 1 {&lt;BR /&gt;CENTER&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//CHOOSES Z OPTION 3&lt;BR /&gt;} elseif $z == 2 {&lt;BR /&gt;BOTTOM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EDIT NCPROGRAM $active_NCPROGRAM NOTES "Z"&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;HOW DO I GET THIS LINE TO WRITE THE CHOSEN TEXT FROM $z VARIABLE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIALOGS MESSAGE ON&lt;BR /&gt;DIALOGS ERROR ON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone would lend their expertise I would be grateful&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 12:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12828676#M1681</guid>
      <dc:creator>josh.cowley.ctd</dc:creator>
      <dc:date>2024-06-10T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Macro to add notes to nc program set up sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12830371#M1682</link>
      <description>&lt;LI-CODE lang="csharp"&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW
STRING ARRAY A[] = {"Top","Centered","Bottom"}

//NAME OF USER INPUT WINDOW
INT Z = INPUT CHOICE $A "Select Z Location?"

// Create Build the Note as a string
STRING ncNotes = "Z " + $A[$Z]

// Set the notes equal to the $ncNotes variable
EDIT NCPROGRAM ; NOTES $ncNotes &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Jun 2024 16:52:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12830371#M1682</guid>
      <dc:creator>Sean571</dc:creator>
      <dc:date>2024-06-10T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Macro to add notes to nc program set up sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12832270#M1683</link>
      <description>&lt;P&gt;Thank you very much for your assistance!!! I greatly appreciate it!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 13:16:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12832270#M1683</guid>
      <dc:creator>josh.cowley.ctd</dc:creator>
      <dc:date>2024-06-11T13:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Macro to add notes to nc program set up sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12832277#M1684</link>
      <description>&lt;P&gt;For anyone interested, here is the final result. This will add your datum location to the ncprogram user defined notes, which will show in your set up sheets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again Sean for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Adds notes to "NCPROGRAMS USER DEFINED NOTES"&lt;/P&gt;&lt;P&gt;EDIT PAGE NCPROGRAMNOTES1&lt;/P&gt;&lt;P&gt;QUIT FORM NCPROGRAMNOTES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//CREATES X&lt;/P&gt;&lt;P&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY A[] = {"Left","Center","Right"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT X = INPUT CHOICE $A "Select X Location?"&lt;/P&gt;&lt;P&gt;// Create Build the Note as a string&lt;BR /&gt;STRING ncNote1 = "X " + $A[$X]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//CREATES Y&lt;BR /&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY B[] = {"Front","Center","Back"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT Y = INPUT CHOICE $B "Select Y Location?"&lt;/P&gt;&lt;P&gt;// Create Build the Note as a string&lt;BR /&gt;STRING ncNote2 = "Y " + $B[$Y]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//CREATES Z&lt;BR /&gt;//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW&lt;BR /&gt;STRING ARRAY C[] = {"Top","Centered","Bottom"}&lt;/P&gt;&lt;P&gt;//NAME OF USER INPUT WINDOW&lt;BR /&gt;INT Z = INPUT CHOICE $C "Select Z Location?"&lt;/P&gt;&lt;P&gt;// Create Build the Note as a string&lt;BR /&gt;STRING ncNote3 = "Z " + $C[$Z]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// ADDS MULTIPLE VARIBLES TOGETHER FOR FINAL STRING&lt;BR /&gt;STRING ncNotes = $ncNote1+","+" "+ncNote2+","+" "+ncNote3&lt;/P&gt;&lt;P&gt;// Set the notes equal to the $ncNotes variable&lt;BR /&gt;EDIT NCPROGRAM ; NOTES $ncNotes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 13:19:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12832277#M1684</guid>
      <dc:creator>josh.cowley.ctd</dc:creator>
      <dc:date>2024-06-11T13:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Macro to add notes to nc program set up sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12870174#M1685</link>
      <description>&lt;P&gt;Can you show a imagem hás exemplo?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 20:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/12870174#M1685</guid>
      <dc:creator>nubrandao</dc:creator>
      <dc:date>2024-06-30T20:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Macro to add notes to nc program set up sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/13747964#M32743</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Could you please share a report how it is working&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 10:05:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/need-help-with-macro-to-add-notes-to-nc-program-set-up-sheet/m-p/13747964#M32743</guid>
      <dc:creator>ramaprasad_narayan</dc:creator>
      <dc:date>2025-07-31T10:05:29Z</dc:date>
    </item>
  </channel>
</rss>

