How to get Access to Variable Project file

How to get Access to Variable Project file

andreas_schleif
Participant Participant
360 Views
4 Replies
Message 1 of 5

How to get Access to Variable Project file

andreas_schleif
Participant
Participant

Hello,

how do I get access to the variable owner and release ID of the project file ( .ipj ) in such a way that I can display it on a drawing, for example?
I would like to make the variables available via the iProperties.

 

Many thanks for your support

Andreas

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

vpeuvion
Advocate
Advocate

Hi,

This may be able to help you. It's not recent, but still works on my 2023 version.

https://inventortrenches.blogspot.com/2012/07/ilogic-and-inventor-project-file.html

Hope this will help you. Vincent.

0 Likes
Message 3 of 5

nstevelmans
Advocate
Advocate
Accepted solution

Hi, Try this in a drawing

 

Dim DesignProject = ThisApplication.DesignProjectManager.ActiveDesignProject

Dim oOwner As String = DesignProject.Owner
Dim oId As String = DesignProject.ReleaseId

iProperties.Value("Custom", "Owner") = oOwner
iProperties.Value("Custom", "releaseID") = oId

'MsgBox(oOwner)
'MsgBox(oId)

If a response answers your question, please use  ACCEPT SOLUTION  to assist other users later.

Also be generous with Likes!  Thank you and enjoy!

 

 

 

Message 4 of 5

Stakin
Collaborator
Collaborator
Thisapplication.DesignProjectManager.Projects.ActiveProject
0 Likes
Message 5 of 5

andreas_schleif
Participant
Participant

Thank you 

0 Likes