Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open Projects location

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
wowrs1608
350 Views, 4 Replies

Open Projects location

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

 

4 REPLIES 4
Message 2 of 5

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: Reset view Representations | Smart Leader | Copy with Constraints | Part Visibility Utility | Property Editor | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle


Message 3 of 5
Michael.Navara
in reply to: wowrs1608

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

I have tried both FileOptions & FileLocations.

I'll use the ActiveDesignProject.

Message 5 of 5
wowrs1608
in reply to: Michael.Navara

Thank you very much. This one worked.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report