<?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 Macro command to import a model in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9660442#M10954</link>
    <description>&lt;P&gt;When I run the macro I receive a translator error. When I import the same file, without the macro, the translator works fine.&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;// Create a list of files located in a specific folder&lt;BR /&gt;string LIST files = list_files("files","M:\LUTEJ1_Toolpaths\PN_103006\L00020_Build_Creo")&lt;/P&gt;&lt;P&gt;// Select a file from the list&lt;BR /&gt;INT x = INPUT CHOICE $files "Choose the desired Folder"&lt;BR /&gt;&lt;BR /&gt;// Define a variable that includes the name of the file selected for import&lt;BR /&gt;string filename = $files[$x]&lt;BR /&gt;&lt;BR /&gt;// Review file name selected, for testing only&lt;BR /&gt;print $filename&lt;BR /&gt;Macro pause $filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Import model&lt;BR /&gt;IMPORT MODEL FILEOPEN $filename&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 18:52:46 GMT</pubDate>
    <dc:creator>john_lute</dc:creator>
    <dc:date>2020-07-28T18:52:46Z</dc:date>
    <item>
      <title>Macro command to import a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9660442#M10954</link>
      <description>&lt;P&gt;When I run the macro I receive a translator error. When I import the same file, without the macro, the translator works fine.&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;// Create a list of files located in a specific folder&lt;BR /&gt;string LIST files = list_files("files","M:\LUTEJ1_Toolpaths\PN_103006\L00020_Build_Creo")&lt;/P&gt;&lt;P&gt;// Select a file from the list&lt;BR /&gt;INT x = INPUT CHOICE $files "Choose the desired Folder"&lt;BR /&gt;&lt;BR /&gt;// Define a variable that includes the name of the file selected for import&lt;BR /&gt;string filename = $files[$x]&lt;BR /&gt;&lt;BR /&gt;// Review file name selected, for testing only&lt;BR /&gt;print $filename&lt;BR /&gt;Macro pause $filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Import model&lt;BR /&gt;IMPORT MODEL FILEOPEN $filename&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:52:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9660442#M10954</guid>
      <dc:creator>john_lute</dc:creator>
      <dc:date>2020-07-28T18:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro command to import a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9661145#M10955</link>
      <description>&lt;P&gt;change:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;IMPORT MODEL FILEOPEN $filename&lt;/LI-CODE&gt;
&lt;P&gt;by:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;IMPORT MODEL $filename&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Jul 2020 03:01:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9661145#M10955</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2020-07-29T03:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro command to import a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9661728#M10956</link>
      <description>&lt;P&gt;Thank you for the help?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 11:00:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/9661728#M10956</guid>
      <dc:creator>john_lute</dc:creator>
      <dc:date>2020-07-29T11:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro command to import a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/12714577#M10957</link>
      <description>&lt;P&gt;Do you know how i could modify this to select multiple files to batch import models?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 12:56:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/12714577#M10957</guid>
      <dc:creator>brandond276RW</dc:creator>
      <dc:date>2024-04-17T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro command to import a model</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/12717334#M10958</link>
      <description>&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Use this macro made by&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; @Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;If you get an unauthorized access error, you need to change your computer's policies to enable script execution:&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;- Run "Windows Powershell" as administrator;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;- Type: Set-ExecutionPolicy Unrestricted&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;- Press enter&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;- Press Yes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-command-to-import-a-model/m-p/12717334#M10958</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2024-04-18T13:08:06Z</dc:date>
    </item>
  </channel>
</rss>

