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
376 Views, 4 Replies

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

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

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 | Property Editor | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle


0 Likes

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 | Property Editor | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle


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

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)

 

 

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

I have tried both FileOptions & FileLocations.

I'll use the ActiveDesignProject.

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

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

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