File Dialog set initial directory not working

File Dialog set initial directory not working

Anonymous
Not applicable
556 Views
2 Replies
Message 1 of 3

File Dialog set initial directory not working

Anonymous
Not applicable

I've taken a sample from here to create a dialog box:

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-API/files/Fi...

 

But I'm finding that setting the InititalDirectory is not working as I expected it to. When the file dialog opens I'm presented with the last directory I was in, rather than the one specified in the code.

 

Am I missing something or misunderstanding what this property means?

 

InititalDirectory

Property that gets and sets the directory that will be used when the dialog is initially displayed.

 

0 Likes
Accepted solutions (1)
557 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @Anonymous,

 

I think this is just an ongoing bug (see link), but I don't know of a good work around.

 

https://forums.autodesk.com/t5/inventor-customization/file-dialog-initial-directory-stuck-on-workspace/m-p/6883307#M70261

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 3 of 3

Anonymous
Not applicable

Boohoo!! Smiley Sad that will be that project parked then 

 

Thanks for the info @Curtis_Waguespack

0 Likes