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

Just tried creating a new blank weldment from scratch and it worked for that. Not sure what's wrong with the original, I converted it to a weldment from a standard assembly.

In the one that's giving me issues I can access the component definition from this rule inside it, so I don't know why it doesn't like it from my other rule.

 

Dim oAssDoc As AssemblyDocument
oAssDoc = ThisApplication.ActiveDocument

Dim wcd As WeldmentComponentDefinition
wcd = oAssDoc.ComponentDefinition

Dim oEachWeldB As WeldBead

WeldCount = wcd.Welds.WeldBeads.Count

MsgBox(WeldCount)