Hope I didn't get it wrong, you can try the iPart.FindRow， which will look up the parameter in iPart factory. Attached please find a sample I made. Noticed that we didn't add the extension (.ipt) in the rule.
I created two different style in the sheetmetal iPart which varies from its thickness, if you would like to share your sample I can look at it. you can send it to my email jingyiDOTliuATautodeskDOTcom.
i = iPart.FindRow("Test iLogic and Sheetmetal-iPart:1", "SheetMetalRule", "=", Thickness)
i am having a similar problem:
i want to create an Sheet Metal Ipart to publish on Content Center later and insert diferents sheet metal with diferents thicnesses on Assembly.
But i'm having problems creating the ipart table whit diferents thicknesses and diferents sheet metal rules...The diferent iparts created doesnt change its thickness like i entered on the ipart table.
I hope you can help me!
I'm using Inventor Autodesk 2011
Attached example file.
By 'stabilize' it simply means to rename the iPart in the browser to some common name. So rather than the iPart member name listed it is something more generic. Then you use that generic name in the FindRow Snippet.
iRow = iPart.FindRow("GenericName", "Column1Name", "=", Pump_Model,"Frame","=", Left(Motor_Frame,3)+"JM")
See my explanation:
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.