Message 1 of 5
Create circular pattern in assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have tried copy som code from the forum, there looks like something I need, what I need i if the "workPlane_sub_beam" are = 0 then do nothing else create an circular pattern on "Y axis" instance of 2.
If Parameter("Skeleton", "WorkPlane_sub_beam") = 0 Then ' do nothing Else Dim oCdef As ComponentDefinition oCdef = ThisDoc.Document.ComponentDefinition Dim objCol As ObjectCollection objCol = ThisApplication.TransientObjects.CreateObjectCollection 'Feature to be patterned objCol.Add(oCdef.Features("Extrusion1")) 'degrees oDeg = 180 'create pattern '....CircularPatternFeatures.Add(Features in Pattern, Axis, NaturalAxisDirection, Count, Angle, FitWithinAngle) oCdef.Features.CircularPatternFeatures.Add(objCol, oCdef.WorkAxes.Item("Z Axis"), False, 2, oDeg , True) End If
Thanks,