07-26-2017
07:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-26-2017
07:33 AM
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)