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

Yes.  I did find it to be interesting that it counts the 'Welds' node in the model browser of a weldment type assembly as a ComponentOccurrence.  And because it has a 'Definition' as a WeldsComponentDefinition, it then gives us similar access to the objects below it as other ComponentDefinition types do (Occurrences, SurfaceBodies, BOMQuantity, BOMStructure, etc.).  I also thought it was interesting that even though the weldment assembly I was testing code on included 3 individual welds in the model browser, and the WeldsComponentDefinition.Welds.Count reflected that correctly, but then there were zero occurrences, and only one SurfaceBody within the WeldsComponentDefinition.  I'm guessing this is just like in a PartComponentDefinition, because it also contains an Occurrences property that is rarely used, and normally all new geometry is added to the main SurfaceBody, unless you specify that you want it to be a new SurfaceBody.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)