I need a simple iLogic code that lets me copy iProperties of my choosing from my assy and to a Part, and grab som iProperties from my part and put into Assy iProperties.
the Assy and part are always named the same, and placed in specific folder, so i can easily locate the files.
I have been searching the forum without finding anything i have the skills to adjust to my needs... 😞
It should be like this..: (not written in correct code but you´ll get my point.. )
'Get partnumber from active assy or part, depending what you have active
PartN = iProperties.Value("Project", "Part Number")
'Defining Assy file
Assy = "M:\80000\" & PartN &".iam"
'Definging Part file
Part = "M:\80000\" & PartN &".ipt"
'Copy iproperty Description
Part.iProperties.Value("Project", "Description") = Assy.iProperties.Value("Project", "Description")
'Copy iProperty Custom value Pcs
Assy.iProperties.Value("Custom", "PCS") = Part.iProperties.Value("Custom", "PCS")
'save both files
Save part
Save assy
If only i knew what to write in the above lines it would work 🙂
Hope someone can help me..!
/LSA
Ok, I assume you know how to load *.frm files into Inventor and running it so I attached it here.
Import this form into the Application project folder.
To use this form, open the part/assembly file you want to copy properties into then run the form.
In the form, select the source file of the properties and select the property(s) you want to copy and click on copy...
Let me know if it works for you.
*Rename the attached file from ".doc" to ".zip"
Can't find what you're looking for? Ask the community or share your knowledge.