Community
I'm trying to set the "InitialDirectory"-property on the Inventor filedialog in Inventor 2014, using C#. Can't seem to get it working...
In the API-programming help I noticed there's a difference between stringformats in C# and VB - where C# should be in the form C:/Directory, and VB needs backslash instead (C:\Directory).
Neither one is working for me - anyone having the same problem? Is this a known issue? I know it has been flagged in earlier versions of Inventor
Here's my code:
fileDialog.DialogTitle = "Save Copy As " + fileExtension; fileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(document.FullFileName).Replace('\\', '/'); fileDialog.CancelError = false; fileDialog.OptionsEnabled = true;
No i didn't, thanks! But there's an initial problem with using Windows native savedialog - I can't enable any inventor fileoptions can I? I'll have to check this out. Thanks