Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
kwalker1
in reply to: chandra.shekar.g

Thanks very much Chandra for the information and adjusted code.

I have now installed Inventor 2019 and it works great.

 

But I'm encountering one other problem.

 

I'm trying to trigger the code to only run when the shrinkwrap file's Date & Time Stamp iproperty does not match the base component's Date & Time Stamp iproperty.

If triggered, the code will:

1. Unsuppress link with base component

2. Update the shrinkwrap

3. Re-suppresses link with base component

4. Then updates the shrinkwrap's Date & Time Stamp iproperty to match the base component's Date & Time Stamp iproperty.

 

The problem I'm having is that I can't seem to read the base component's iproperty because it is suppressed.

image.png

 

 

I have tried the following 2 pieces of code but both won't work for me.

Is there a way to call up an iproperty value of another file which has not be placed / derived / made active within the file that contains the code?

 

'UPDATE SHRINKWRAP SAVE Date & TIME STAMP

iProperties.Value("Custom", "SHRINKWRAP SAVE DATE & TIME STAMP") = iProperties.Value("STRUCTURE ASSEMBLY.iam", "Custom", "STRUCTURE SAVE DATE & TIME STAMP")
'UPDATE SHRINKWRAP SAVE DATE & TIME STAMP (CODE TEST 2)
	
Dim baseComponentFilePath As String
	
baseComponentFilePath = ThisDoc.Path + "\STRUCTURE ASSEMBLY.iam"
	
iProperties.Value("Custom", "SHRINKWRAP SAVE DATE & TIME STAMP") = iProperties.Value(baseComponentFilePath, "Custom", "STRUCTURE SAVE DATE & TIME STAMP")

I have attached an updated model with the code I'm using.

Many thanks for the help.