@0x3FA5 wrote:
I managed to get through up to here, can you please help me with this one? Couldn't find "On Save" trigger, and the official help files - well, you know..
Unfortunately, I wrote that in a hurry just before I was leaving work yesterday, and made a couple of mistakes in the post. The trigger is actually called "Before Save", not "On Save." There is also an "After Save", but I don't recommend that one for this situation.
Also, your other post asking about whether the code should have been pulling from PartA or PartB, you were correct that it should have been PartA:
Component_Material_PIPE = Parameter("PartA.ipt", "Component_Material_PIPE")
Sorry for the confusion there. I actually tested this in existing files with names that wouldn't have made sense to you. When I tried to rework what I really did into an intelligible example (again in a hurry as I was getting ready to leave for the day), I mixed up the file names.