Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
tobias.orlow
in reply to: llorden4

Hi @llorden4 ,

 

Thanks for the update. My bad, the LmiRuleScript is class behind the scenes, but the new code you provided seems to be closer to the root of the issue.

 

Could you try declaring 

oAsmCompDef as WeldmentComponentDefinition

in case the used template is a weldment assembly, do the same in your "Sub FacePlanes()", and let me know if the behavior changes?

 

The only declaration of type ComponentOccurrence I can see is in the 'for each.. loop' also in Sub FacePlanes(),  you could try changing it like

For Each tComp as Object in tComps

to try to let the compiler cast the type.

 

 

Many thanks,

Tobias

Tobias Orlow
Designated Support Specialist
Customer Success Organization
Linkedin: www.linkedin.com/in/tobiasorlow/