- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can't seem to find an answer for this problem I am having. I have an addin I am writing that uses Inventor's FileDialog to select macros to run (the macros are written in Python). I use the InitialDirectory option to set the default location of where I store my macros. The problem is, after executing the macro, the next time I go to do anything which opens a FileDialog (Open, Place Component, etc.), the InitialDirectory of that dialog is still set to the directory I selected my macro from. I thought perhaps I could read and store any value stored in the InitialDirectory before changing it, but the value is null, and clearing it afterwards does not help. Does anyone know of a method whereby I can still use Inventor's FileDialog object in my addin and NOT mess with the directory Inventor uses the next time it uses the FileDialog to open or insert a file, or do you think I will have to resort to using an MS native file dialog instead of Inventor's?
Solved! Go to Solution.