Inventor Customization
Welcome to Autodesk’s Inventor Customization Forums. Share your knowledge, ask questions, and explore popular Inventor Customization topics.

Inventor Customization

Reply
Highlighted
Post 1 of 8

add user path to projet file

243 Views, 7 Replies
08-11-2016 02:36 AM

Hello together,

 

I found an old thread with the same problem but without a solution

 

http://forums.autodesk.com/t5/inventor-customization/add-user-path-to-projet-file-does-not-work-user...

 

Dim m_inventorApp As Inventor.Application = Nothing
m_inventorApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")

Dim oProjectManager As DesignProjectManager
oProjectManager = m_inventorApp.DesignProjectManager

'Dim oProject As DesignProject
Dim strWorkspacePath As String
strWorkspacePath = oProjectManager.ActiveDesignProject.WorkspacePath
MsgBox(strWorkspacePath)
oProjectManager.ActiveDesignProject.FrequentlyUsedPaths.Add("Modelle", strWorkspacePath & "\Modelle")
oProjectManager.ActiveDesignProject.FrequentlyUsedPaths.Add("Zeichnungen", strWorkspacePath & "\Zeichnungen")

How could I add the paths? The folder exists already.

 

Thanks

Georg

Re: add user path to projet file

08-11-2016 04:47 AM in reply to: GeorgK

Hi,

 

After lots of trial and error with the project file and configuration of it, i came up with another approach that perfectly works for me.

 

I've created manually a complete project file, with a complete folder structure and saved it somewhere as a template.

 

I .NET i just have to copy and rename the folder and project file and place it in my project directory and activate it.

 

I did not solved the original problem, but i walked around it.

 

For new projects this is (for me) the best start and easy to manage if things changes in my project files over time.

 

For old project i just copy a new project over my old project with the new, correct settings.

 

Far more easier then programming the project file.

If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"
Post 3 of 8

Re: add user path to projet file

08-11-2016 05:03 AM in reply to: frederic.vandenplas

Hello Frederic,

 

To make a textfile with all the options is a workaround. I hope there is a solution from Autodesk for the problem.

 

Cheers

 

Georg

Post 4 of 8

Re: add user path to projet file

08-17-2016 01:55 AM in reply to: GeorgK
Hi,

I can still reproduce this issue (FrequentlyUsedPaths creates the invalid path, path is stroked through) in Inventor 2017. I logged it with our engineer team: TFS-147688.

Sorry for the inconvenience at this moment.

Xiaodong Liang
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network

Twitter: https://twitter.com/coldwood
LinkedIn: http://www.linkedin.com/in/xiaodongliang
Email: xiaodong.liang@autodesk.com
Post 5 of 8

Re: add user path to projet file

08-17-2016 04:10 AM in reply to: xiaodong.liang

Hello Xiaodong,

 

when and for what versions there will be a patch? The error is also in version 2014 to 2017.

 

Georg

Post 6 of 8

Re: add user path to projet file

09-06-2016 02:52 AM in reply to: GeorgK

Hi Georg,

 

We do not know yet.

 

Cheers,



Adam Nagy
Developer Technical Services
Autodesk Developer Network
Post 7 of 8

Re: add user path to projet file

11-28-2016 11:32 AM in reply to: GeorgK

For the time being, you could also use this workaround:

http://adndevblog.typepad.com/manufacturing/2016/11/add-to-frequently-used-subfolders-collection.htm...

 

 



Adam Nagy
Developer Technical Services
Autodesk Developer Network
Post 8 of 8

Re: add user path to projet file

11-28-2016 11:38 PM in reply to: adam.nagy

Hello Adam,

 

thank you for your help. When is a fix for Inventor 2017 ready?

 

Georg

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.