Tuesday, February 07, 2012
Default File Path
Last Post 08 Apr 2010 11:32 AM by IBZ. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
IBZUser is Offline
New Member
New Member
Posts:5

--
07 Apr 2010 11:16 AM  

Hi,

Can some one tell me for what the DefaultFilePath Property in Application Interface is. I have tryed to set it with my .Net macro, bat it is steal the same. I would like to use it as som art of standard file path for my project (project path), but if i set it by my macro on next start or file open it points always to the same point. Any ideas why ?

Thanks and best regards.

IBZ

 

ErWoUser is Offline
New Member
New Member
Posts:37

--
08 Apr 2010 12:53 AM  

Hi IBZ,

Application.DefaultFilePath

'Sets and returns the default path used when files are opened'

It points to the Solid Edge Program Folder. This is the folder where Egde.exe (and licence.dat etc.) is located. I believe you want to use it for the wrong purpose.

Just a guess, but maybe you can use it if you got two versions of SE installed. You can set the right program folder for the Edge.exe you want to start.

You can open a specific file using; Application.Documents.Open(C:/Temp/Test.par).

Maybe this gets you further.

Wouter (Erwo)

IBZUser is Offline
New Member
New Member
Posts:5

--
08 Apr 2010 03:52 AM  
Hi,

thanks for replay but i must disagree with you :). I have tested it a little bit and it points always to directory that i use for file open or save. I can allways read and set that Property, but if I do set it, it does't presist. File open dialog overrides it. To bad, it would be so nice to have such an easy way to control initial directory for file open and save dialogs :(. Is the only way to do this to catch the FileUIEvents ?

Best Regards
IBZ
chris mannUser is Offline
New Member
New Member
Posts:33

--
08 Apr 2010 09:21 AM  
IBZ,

Another possibility is to set the value in this key in the registry?

HKEY_CURRENT_USER\SOFTWARE\Unigraphics Solutions\Solid Edge\Version 102\OpenAndSaveDisplaySettings

LastPath = C:\wherever\working


Chris.
ErWoUser is Offline
New Member
New Member
Posts:37

--
08 Apr 2010 10:42 AM  

Hi,

Now I understand what you wanted to achieve. Looks like I was pretty wrong indeed , when I tested the variable it pointed to the program folder, unfortunately my guess turned out to be wrong, my apologies. But the good point is that Chris seems to have the answer for your problem, and that I have learned something today .

Good luck,

Wouter

 

IBZUser is Offline
New Member
New Member
Posts:5

--
08 Apr 2010 11:32 AM  
thank,

I will try and let you know :)

IBZ
You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET