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: 

How to get Access to Variable Project file

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
andreas_schleif
172 Views, 4 Replies

How to get Access to Variable Project file

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

4 REPLIES 4
Message 2 of 5
vpeuvion
in reply to: andreas_schleif

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.

Message 3 of 5
nstevelmans
in reply to: vpeuvion

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
in reply to: andreas_schleif

Thisapplication.DesignProjectManager.Projects.ActiveProject
Message 5 of 5

Thank you 

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report