Activating Project working

Activating Project working

ngocson8335
Advocate Advocate
947 Views
4 Replies
Message 1 of 5

Activating Project working

ngocson8335
Advocate
Advocate

Dear all,

 

I would like to get the workspace of an activating project in Inventor. But I can not find the right API to get it.

 

Please support me in this case.

 

Thank you.

Ngoc Son
Autodesk User
0 Likes
Accepted solutions (3)
948 Views
4 Replies
Replies (4)
Message 2 of 5

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

Try

ThisApplication.DesignProjectManager.ActiveDesignProject.WorkspacePath

R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 5

ngocson8335
Advocate
Advocate

Thanks Sir, but it replied in Nothing. I do not know why. I am using VB.NET

Ngoc Son
Autodesk User
0 Likes
Message 4 of 5

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

It is possible that the active project had no workspacepath defined. Can you manually verify that this path is set in projectmanager? If this path is not set, Inventor looks next in the

ThisApplication.DesignProjectManager.ActiveDesignProject.WorkgroupPaths

 

If there is also not set a path, Inventor takes documents folder in user profil.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 5 of 5

NachoShaw
Advisor
Advisor
Accepted solution
Dim _InvApp as Inventor.Application
Dim oDesignProjectMgr As Inventor.DesignProjectManager = _Invapp.DesignProjectManager

Dim oProject As Inventor.DesignProject = oDesignProjectMgr.ActiveDesignProject

Dim ProjectName As String = oProject.Name
Dim ProjectPath As String = oProject.WorkspacePath

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes