Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.