Assembly cut particpants

Assembly cut particpants

kathirrasokan
Observer Observer
214 Views
1 Reply
Message 1 of 2

Assembly cut particpants

kathirrasokan
Observer
Observer

i have an inventor assembly and in that assembly i have a extrusion cut names Extrusion 3. This Extrusion cut the pattern in that assembly. it cuts the first element of the pattern only. i need that cut to add all partipants (elements) of the pattern. how can i add the participants. 

0 Likes
215 Views
1 Reply
Reply (1)
Message 2 of 2

Michael.Navara
Advisor
Advisor

Here is short snippet, how to add occurrences to extrude feature as participants

 

Dim asm As AssemblyDocument = ThisDoc.Document
Dim extrusion As ExtrudeFeature = asm.ComponentDefinition.Features.ExtrudeFeatures(1)
Dim pattern As OccurrencePattern = asm.ComponentDefinition.OccurrencePatterns(1)

For Each element As OccurrencePatternElement In pattern.OccurrencePatternElements
    For Each occ As ComponentOccurrence In element.Occurrences
        extrusion.AddParticipant(occ)
    Next
Next
0 Likes