<?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: Help Macro to open nc file in external program in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12592495#M2558</link>
    <description>&lt;P&gt;Hi Guys, so after using my macro for the last few months, I have discovered that it need some more tweaking.&amp;nbsp; I have found that the macro opens the nc file even if there was a change made, it opens the old written file in the project location. Is there a way to modify the code to check if the file is written, and if not write the file before opening the nc file in external editor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the macro code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIALOGS ERROR OFF&lt;BR /&gt;STRING ncname = ""&lt;BR /&gt;STRING project_dir = ""&lt;BR /&gt;STRING filenc = ""&lt;BR /&gt;FOREACH ncp IN explorer_selected_entities() {&lt;BR /&gt;STRING ncname = ncp.Name&lt;BR /&gt;STRING project_dir = project_pathname(0)&lt;BR /&gt;STRING filenc = $project_dir + "/ncprograms/" + $ncname + ".nc"&lt;BR /&gt;OLE FILEACTION "OPEN" $filenc&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 06:57:22 GMT</pubDate>
    <dc:creator>nathanANTQX</dc:creator>
    <dc:date>2024-03-01T06:57:22Z</dc:date>
    <item>
      <title>Help Macro to open nc file in external program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12476113#M2553</link>
      <description>&lt;P&gt;Hey Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an annoying issue with powermill, I am forever hitting view file in the right click menu causing my pc to hang while reading huge files. we always use an external nc editor to view and edit nc files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to edit the right click menu to remove re-order and view vile from the menu?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a way to open selected nc files with a macro similar to the below for each loop?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOREACH $tp IN explorer_selected_entities() {&lt;BR /&gt;$TpName = $tp.Name&lt;BR /&gt;ACTIVATE TOOLPATH $TpName&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(p.s. "For loop" is from my select and transform macro.)&lt;/P&gt;&lt;P&gt;Looking to be able to select nc files and hit the macro button to open the selected nc files in external editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards Nathan&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 09:49:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12476113#M2553</guid>
      <dc:creator>nathanANTQX</dc:creator>
      <dc:date>2024-01-04T09:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help Macro to open nc file in external program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12476251#M2554</link>
      <description>&lt;P&gt;DIALOGS ERROR OFF&lt;/P&gt;&lt;P&gt;STRING ncname = ""&lt;BR /&gt;STRING project_dir = ""&lt;BR /&gt;STRING file = ""&lt;BR /&gt;FOREACH ncp IN explorer_selected_entities() {&lt;BR /&gt;STRING ncname = ncp.Name&lt;BR /&gt;STRING project_dir = project_pathname(0)&lt;BR /&gt;STRING file = $project_dir + "/ncprograms/" + $ncname + ".nc"&lt;BR /&gt;OLE FILEACTION "OPEN" $file&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;opens any selected nc file, can be multiple&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 04:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12476251#M2554</guid>
      <dc:creator>nathanANTQX</dc:creator>
      <dc:date>2024-01-05T04:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help Macro to open nc file in external program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12477080#M2555</link>
      <description>&lt;P&gt;We use "cimco edit" for view and editing NC programs. Once it is installed, right clicking on each NC program ,"open in external program " opens g-code in cimco.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 17:33:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12477080#M2555</guid>
      <dc:creator>hrh46</dc:creator>
      <dc:date>2024-01-04T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help Macro to open nc file in external program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12478054#M2556</link>
      <description>&lt;P&gt;We use HSM edit,&amp;nbsp; the macro allows you to select multiple nc files and open in HSM, instead of opening each one with right click, open in external program.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 04:31:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12478054#M2556</guid>
      <dc:creator>nathanANTQX</dc:creator>
      <dc:date>2024-01-05T04:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help Macro to open nc file in external program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12478521#M2557</link>
      <description>&lt;P&gt;I prefer Notepad++ as my external editor, once you associate NC or tap files or whatever with notepad ++.&lt;/P&gt;&lt;P&gt;Also great for editing macros, there is a language file on here somewhere that colours the macros, making it easier to view than all black text.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 10:36:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12478521#M2557</guid>
      <dc:creator>kevin.hammond3WX4X</dc:creator>
      <dc:date>2024-01-05T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help Macro to open nc file in external program</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12592495#M2558</link>
      <description>&lt;P&gt;Hi Guys, so after using my macro for the last few months, I have discovered that it need some more tweaking.&amp;nbsp; I have found that the macro opens the nc file even if there was a change made, it opens the old written file in the project location. Is there a way to modify the code to check if the file is written, and if not write the file before opening the nc file in external editor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the macro code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIALOGS ERROR OFF&lt;BR /&gt;STRING ncname = ""&lt;BR /&gt;STRING project_dir = ""&lt;BR /&gt;STRING filenc = ""&lt;BR /&gt;FOREACH ncp IN explorer_selected_entities() {&lt;BR /&gt;STRING ncname = ncp.Name&lt;BR /&gt;STRING project_dir = project_pathname(0)&lt;BR /&gt;STRING filenc = $project_dir + "/ncprograms/" + $ncname + ".nc"&lt;BR /&gt;OLE FILEACTION "OPEN" $filenc&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 06:57:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-macro-to-open-nc-file-in-external-program/m-p/12592495#M2558</guid>
      <dc:creator>nathanANTQX</dc:creator>
      <dc:date>2024-03-01T06:57:22Z</dc:date>
    </item>
  </channel>
</rss>

