Hi,
I am following this to open Projects Location folder https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/vb-net-get-project-file-path/td-p/80...
But it only opens my Documents folder, not the the folder specified under the Get Started/Projets/Location item.
Which option I should choose?
Inventor 2022 +vb.net.
Cheers,
Pete
Solved! Go to Solution.
Hi,
I am following this to open Projects Location folder https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/vb-net-get-project-file-path/td-p/80...
But it only opens my Documents folder, not the the folder specified under the Get Started/Projets/Location item.
Which option I should choose?
Inventor 2022 +vb.net.
Cheers,
Pete
Solved! Go to Solution.
Solved by Michael.Navara. Go to Solution.
There is a difference between the project file location and the project workspace location. I see both answers in the thread you linked. Did you try both options?
There is a difference between the project file location and the project workspace location. I see both answers in the thread you linked. Did you try both options?
I don't recommend you to use undocumented FileLocations property of Application object. Clear solution is to use ActiveDesignProject. Another issue may be in explorer.exe arguments
Here is short sample
Dim activeProject As DesignProject = ThisApplication.DesignProjectManager.ActiveDesignProject
Dim location = System.IO.Path.GetDirectoryName(activeProject.FullFileName)
Logger.Debug(location)
Dim args = String.Format("/e,/root,""{0}""", location)
Logger.Debug(args)
Process.Start("explorer.exe", args)
I don't recommend you to use undocumented FileLocations property of Application object. Clear solution is to use ActiveDesignProject. Another issue may be in explorer.exe arguments
Here is short sample
Dim activeProject As DesignProject = ThisApplication.DesignProjectManager.ActiveDesignProject
Dim location = System.IO.Path.GetDirectoryName(activeProject.FullFileName)
Logger.Debug(location)
Dim args = String.Format("/e,/root,""{0}""", location)
Logger.Debug(args)
Process.Start("explorer.exe", args)
I have tried both FileOptions & FileLocations.
I'll use the ActiveDesignProject.
I have tried both FileOptions & FileLocations.
I'll use the ActiveDesignProject.
Can't find what you're looking for? Ask the community or share your knowledge.