Open Projects location

Open Projects location

wowrs1608
Advocate Advocate
507 Views
4 Replies
Message 1 of 5

Open Projects location

wowrs1608
Advocate
Advocate

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

 

0 Likes
Accepted solutions (1)
508 Views
4 Replies
Replies (4)
Message 2 of 5

basautomationservices
Advocate
Advocate

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?

Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro


0 Likes
Message 3 of 5

Michael.Navara
Advisor
Advisor
Accepted solution

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)

 

 

Message 4 of 5

wowrs1608
Advocate
Advocate

I have tried both FileOptions & FileLocations.

I'll use the ActiveDesignProject.

0 Likes
Message 5 of 5

wowrs1608
Advocate
Advocate
Thank you very much. This one worked.
0 Likes