I want to get this code to run in an assembly and drill down to the parts and measure them and fill our each parts custom properties. I can do the code easy for the property's in the parts, but I can not remember how to get it to drill down from assemblies. I tried to do this and I do not think it is correct? Any takers out their good with iLogic? I am slammed and do not have time to remember how to do this...


compo=Component.InventorComponent("PartA:1")

Try
iProperties.Value(compo, "Custom", "THICKNESS")=compoMeasure.ExtentsHeight

iProperties.Value(compo, "Custom", "WIDTH")=compoMeasure.ExtentsWidth

iProperties.Value(compo, "Custom", "LENGTH")=compoMeasure.ExtentsLength

Catch
EndTry