Project Name in iProperties

Project Name in iProperties

dschulteHR4D5
Advocate Advocate
2,907 Views
16 Replies
Message 1 of 17

Project Name in iProperties

dschulteHR4D5
Advocate
Advocate

Hello, I am looking for help in automatically adding the project name in the iProperties of files I am working in so when I make a print it will pull in the name of the current project I am working in.

Everything we use has separate project files associated with it, so essentially I am trying to automate how I am making prints, instead of typing in each individual print the project name I want to pull the project name for the project I am working in.

I am making a drawing template to utilize this, by adding a function under Format Text, to pull information from Properties-Model, PROJECT. I have setup a rule to do this but seems it only works by manually running the rule on every individual part I am working on. I am wondering why under iProperties the model doesn't pull the project name under Project: on its own, every file I have seen that text is empty.

If this is not possible to do under Format Text in drawings is there any other way to achieve this? Again I just want to automate the project name onto the prints I have to make. 

Thanks

0 Likes
2,908 Views
16 Replies
Replies (16)
Message 2 of 17

bradeneuropeArthur
Mentor
Mentor

Where do you want to pull the Project name from.

Where is it to be put: drawing Part Assembly

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 17

l.davies3QLM6
Observer
Observer

I would like to display the project name (as it is displayed in the projects window) in the drawing title block automatically, without having to manually fill in the iproperty "project" (that does not seem to be linked to the project name) for each drawing. Is this possible or is there no link between the name of the project and the iproperty named: project?

 

The images below should explain what i'm trying to get at.

 

ldavies3QLM6_0-1650613664842.png

ldavies3QLM6_1-1650613700655.png

 

 

0 Likes
Message 4 of 17

bradeneuropeArthur
Mentor
Mentor

can you send the template dwg?

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 17

l.davies3QLM6
Observer
Observer

here you go.

0 Likes
Message 6 of 17

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Take a look at the rule I have added.

bradeneuropeArthur_0-1650620032165.png

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 7 of 17

dschulteHR4D5
Advocate
Advocate

I have mine setup to run an ilogic code on every ipt and asm every time i open one or create a new one, to find the project name, and add it to iproperties in the model, that way every print pulls the project name for me

0 Likes
Message 8 of 17

bradeneuropeArthur
Mentor
Mentor

For my understanding:

 

You only want to create the project (from the ipj file) if you create the drawing?

Not every save!?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 9 of 17

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Have you taken a look at this possibility:

bradeneuropeArthur_0-1650620940750.png

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 10 of 17

dschulteHR4D5
Advocate
Advocate

I'm not exactly sure where we are going here, what version of inventor do you have? I dont have the option to do what you did, i dont see anywhere that button or the option to copy iproperties. 

 

Mu issue is solved already, like i mentioned i run a rule that pulls the project name and saves it to the iproperties of each part i work with, from there my drawing template pulls that name from the iproperties.

0 Likes
Message 11 of 17

dschulteHR4D5
Advocate
Advocate
Accepted solution

This is the code i use and works just fine, i use the project name as a reference to what we use here to login for each job.  I have it set to run the rule every iam and ipt new and open to automatically update the project section of the iproperties.

 

Dim IPJ As String
Dim IPJ_Name As String
Dim IPJ_Path As String
Dim FNamePos As Long
'set a reference to the FileLocations object. 
IPJ = ThisApplication.FileLocations.FileLocationsFile
'get the location of the last backslash seperator 
FNamePos = InStrRev(IPJ, "\", -1)     
'get the project file name with the file extension
IPJ_Name = Right(IPJ, Len(IPJ) - FNamePos) 
'get the project name (without extension)
IPJ_ShortName = Left(IPJ_Name, Len(IPJ_Name) - 4)
'get the path of the folder containing the project file
IPJ_Folder_Location = Left(IPJ, Len(IPJ) - Len(IPJ_Name))

'Converts the project file name to UPPER CASE
IPJ_ShortName = UCase(IPJ_ShortName)

iProperties.Value("Project", "Project") = IPJ_ShortName

iLogicVb.UpdateWhenDone = True
0 Likes
Message 12 of 17

bradeneuropeArthur
Mentor
Mentor
Accepted solution

bradeneuropeArthur_0-1650621944116.png

What is your question than, if it all works fine.

Regards,

 

Arthur

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 13 of 17

l.davies3QLM6
Observer
Observer

That worked, i did have to do:

 

ldavies3QLM6_3-1650622203189.png

 

 

So if anyone els gets the problem shown below, use the fix stated above (this sentence)

 

ldavies3QLM6_0-1650621810012.png

 

0 Likes
Message 14 of 17

dschulteHR4D5
Advocate
Advocate

Honestly this issue has been solved for a long time i just forgot i had it posted on here. Someone replied asking questions recently so i dont have any issues, whomever chimed in had some questions. I'm good.

 

What version of inventor are you using, i have 2021 currently and this is what my document settings looks like, looks nothing like yours at all, i dont even have the drawing option or any option at all about copying model properties like you are showing. 

0 Likes
Message 15 of 17

l.davies3QLM6
Observer
Observer

For me the solution is solved, I can't find the mark as solved button:

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes
Message 16 of 17

bradeneuropeArthur
Mentor
Mentor
Accepted solution

The screenshot with the properties is only in the dwg environment! 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 17 of 17

dschulteHR4D5
Advocate
Advocate

Dang, yeah i just figured that out. thanks, yeah i dont know if the code is nessecary or not, when i opened those settings the project is check marked on, but before it never worked how i wanted until i used the code to pull the poject name and update the iproperties so i dont know. 

0 Likes