Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Jam_Jumpin
1095 Views, 8 Replies

Change parameters in a different part from the iLogic code.

Here's what I am trying to do. 

 

I will open the part and run a rule

Save a copy of the part to a temp location

Alter some parameters on this part

Save it to it's final location

Close the temporary part window. 

 

I can do all these things, but the issue is that I do not know how to change the parameter in the temp part, it is changing the parameters in the part that the rule is running in. 

 

w is the parameter I am trying to change. 

 

TempFile="C:\Users\***\Target\temp_part.ipt"
TargetFile="C:\Users\***\Target\New file.ipt"

ThisDoc.Document.SaveAs(TempFile , True)
Temp2=ThisApplication.Documents.Open(TempFile)

w = InputBox("Width", "Size", "10")
InventorVb.DocumentUpdate()

Temp2.SaveAs(TargetFile, True)

Temp2.Close

 

 

All the forum posts I could find related to the part being in an assembly which is not how I am doing this.