04-17-2020
12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-17-2020
12:07 AM
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/
Designated Support Specialist
Customer Success Organization
Linkedin: www.linkedin.com/in/tobiasorlow/