Community
I'm using replace on a sub assembly but want to write a parameter change to all the parts in the sub assembly as & when they appear.
An error occurs when I try to write a parameter to a part which isn't in the sub assembly - makes sense but how do work around this?
First try was this:
If Component.IsActive("SS_12.5mm Insln:1") = True Then Parameter("SS_12.5mm Insln:1", "Material") = Insulation
but "SS_12.5mm Insln:1" isn't here (by design) - I want a Component.Exists type comand - possible?
Try this 😉
(Try, Catch, End Try)
Try If Component.IsActive("SS_12.5mm Insln:1") = True Then Parameter("SS_12.5mm Insln:1", "Material") = Insulation Else MsgBox("part is not active") End If Catch 'Assume part does not exist MsgBox("part does not exist") End Try