<?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: Select File in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415272#M12012</link>
    <description>&lt;P&gt;Please test it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;INCLUDE OpenFileDialogMulti.INC
FUNCTION MAIN() {
// OpenFileDialogMulti() sample macro
// This macro calls the Powershell script, and
//  may need to be configured for the operating system to run properly.
//  Talk to your system administrator.
// TempDir: the macro working directory, require write access
   STRING TempDir='c:\Temp'
   STRING StartDir=project_pathname(0)
   IF $StartDir == '' {
      MESSAGE INFO 'Please save the project'
      RETURN
   }
   STRING Prompt='Please select .ddz files'
   STRING Extension='ddz'
// IsMulti: Allow multiple select
   BOOL IsMulti=TRUE
   STRING LIST Result={}
   CALL OpenFileDialogMulti($TempDir,$StartDir,$Prompt,$Extension,$IsMulti,$Result) 
   STRING Msg=''
   FOREACH F IN $Result {
      $Msg=$Msg+crlf+$F
   }
   $Msg='Selected files:'+$Msg
   MESSAGE INFO $Msg 
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 16:17:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-01T16:17:01Z</dc:date>
    <item>
      <title>Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9413900#M12000</link>
      <description>&lt;P&gt;Hi, is there a way to open explorer already in the current Powermill project?&lt;BR /&gt;Macro place to make it clear what I mean.&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 05:52:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9413900#M12000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T05:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414324#M12001</link>
      <description>&lt;P&gt;is this what you're looking for:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;STRING fld = project_pathname(0) + "/"
OLE FILEACTION "OPEN" $fld&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 10:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414324#M12001</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2020-04-01T10:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414393#M12002</link>
      <description>&lt;P&gt;Hi, I was interested in opening this Powermill window in the current project and not explorer Windows.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 11:32:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414393#M12002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T11:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414399#M12003</link>
      <description>&lt;P&gt;oh, i see what you mean&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 11:44:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414399#M12003</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2020-04-01T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414414#M12004</link>
      <description>&lt;P&gt;Sorry, I'm trying to open this Di Powermill window in the&lt;BR /&gt;current project folder:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STRING $folder = project_pathname(0) + "/"&lt;BR /&gt;MKDIR $folder&lt;BR /&gt;$folder=FILESELECT "Select File "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 11:48:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414414#M12004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T11:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414433#M12005</link>
      <description>&lt;P&gt;are you trying to import something else into your current session? what's the end goal?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 11:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414433#M12005</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2020-04-01T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414483#M12006</link>
      <description>&lt;P&gt;You can import a model in .ddz format using the batc file&lt;BR /&gt;I wanted the explorer to open up already in the right director which would be that of the current project.&lt;BR /&gt;I attach complete macro to make you understand&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 12:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414483#M12006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T12:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414604#M12007</link>
      <description>&lt;P&gt;I dont know what a ddz file is. can you expand on that (for my own benefit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as your macro goes, you can determine the file path of said file and then import it that way? you could do that without having to even interface with the file open dialog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMPORT MODEL $ddzModelPath&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have multiple ddz files, you can put them in a pull down menu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:04:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414604#M12007</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2020-04-01T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414726#M12008</link>
      <description>&lt;P&gt;I state that I use many parasolid .x_t filesPowermill automatically converts them to .dgk. .ddz files are opened directly in Powermill because they are Powermill files, however they are 3 times smaller than a .dgk file. I've been using them for about a month and check if Powermill's plans are actually lighter. The macro converts a parasolid x_t to .ddz by opening it in Powermill via Manufacturig data excange. What I need is that when I run the macro, the explorer that opens is already in the current project folder and not in a random one.&lt;BR /&gt;Sorry English but I use a translator.&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414726#M12008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414831#M12009</link>
      <description>&lt;P&gt;your english is good, dont worry. I'm slow to understand. I'm working at this now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so you use ddz files because they are smaller? does powermill run faster with those?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 14:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414831#M12009</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2020-04-01T14:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414889#M12010</link>
      <description>&lt;P&gt;I'm checking it these days it seems so, but I'm waiting for a heavy project to have a confirmation.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 14:31:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9414889#M12010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T14:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415182#M12011</link>
      <description>&lt;P&gt;I know what you're asking now, but I dont know if theres a way to do it. I map the user paths to specific directories to help with shortcuts. One is a temp folder on my desktop where I keep all the projects I'm actively working on&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/748446iEDFB01A3AF969C3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 15:53:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415182#M12011</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2020-04-01T15:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415272#M12012</link>
      <description>&lt;P&gt;Please test it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;INCLUDE OpenFileDialogMulti.INC
FUNCTION MAIN() {
// OpenFileDialogMulti() sample macro
// This macro calls the Powershell script, and
//  may need to be configured for the operating system to run properly.
//  Talk to your system administrator.
// TempDir: the macro working directory, require write access
   STRING TempDir='c:\Temp'
   STRING StartDir=project_pathname(0)
   IF $StartDir == '' {
      MESSAGE INFO 'Please save the project'
      RETURN
   }
   STRING Prompt='Please select .ddz files'
   STRING Extension='ddz'
// IsMulti: Allow multiple select
   BOOL IsMulti=TRUE
   STRING LIST Result={}
   CALL OpenFileDialogMulti($TempDir,$StartDir,$Prompt,$Extension,$IsMulti,$Result) 
   STRING Msg=''
   FOREACH F IN $Result {
      $Msg=$Msg+crlf+$F
   }
   $Msg='Selected files:'+$Msg
   MESSAGE INFO $Msg 
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 16:17:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415272#M12012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T16:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415920#M12013</link>
      <description>&lt;P&gt;I'm sorry I can't get it to work.&lt;/P&gt;&lt;P&gt;However the macro I posted above works well converts .x_t to .ddz I just wanted to shorten the choice of the x_t file which is always inside the current Powermill project and I would like that when you open the file selection window it was already in the correct path and not on a random path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 20:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415920#M12013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T20:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415986#M12014</link>
      <description>&lt;P&gt;I just realized that just press on the top left to enter the current project folder, see attachment.&lt;BR /&gt;Sorry if I made you waste time. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 20:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9415986#M12014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T20:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9416915#M12015</link>
      <description>&lt;P&gt;Oops!&lt;BR /&gt;The project_pathname(0) function gives this result: c:&lt;FONT color="#ff0000"&gt;/&lt;/FONT&gt;akarmi&lt;FONT color="#ff0000"&gt;/&lt;/FONT&gt;xxx&lt;BR /&gt;but Powershell is expecting c:&lt;FONT color="#ff0000"&gt;\&lt;/FONT&gt;akarmi&lt;FONT color="#ff0000"&gt;\&lt;/FONT&gt;xxx. Bug fixed:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FUNCTION OpenFileDialogMulti (….) {
.
.
$StartDir replace $ = ($ StartDir, '/', '\')
.
.
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 08:44:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9416915#M12015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-02T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9417059#M12016</link>
      <description>&lt;P&gt;He gives me this message&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 09:58:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9417059#M12016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-02T09:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9417141#M12017</link>
      <description>&lt;P&gt;&lt;FONT&gt;a.&amp;nbsp;&lt;FONT&gt;Set the $TempDir variable to a valid directory (with write access)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;b.&amp;nbsp; This macro calls the Powershell script, and &amp;nbsp; may need to be configured for the operating system to run properly.&lt;BR /&gt;&amp;nbsp; Talk to your system administrator.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 10:57:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9417141#M12017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-02T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9422764#M12018</link>
      <description>&lt;P&gt;Hi, I checked the TEMP folder for permissions it seems to me all ok look attached.&lt;BR /&gt;The powershell scripts I can run them see macro at post 7 but I always have the same error&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 05:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9422764#M12018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-05T05:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select File</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9422782#M12019</link>
      <description>&lt;P&gt;Please run this macro.&lt;BR /&gt;If all goes well, you will find 4 files in the c:\temp directory:&lt;BR /&gt;tmp.bat,tmp.ps1,tmp.log,success.tmp.&lt;/P&gt;&lt;P&gt;Open Command Prompt window ( Start Menu Search -&amp;gt; cmd)&lt;BR /&gt;Type:&lt;BR /&gt;'c:'&lt;BR /&gt;'cd c:\temp'&lt;BR /&gt;'powershell -file tmp.ps1'&lt;BR /&gt;Take a snapshot of the result, and upload result files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 07:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/select-file/m-p/9422782#M12019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-05T07:00:24Z</dc:date>
    </item>
  </channel>
</rss>

