- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I need to know what sketch is associated to either a "Rectangular"or "Circular"array.
This is so I can filter out sketches that are not repeated in an array.
Here is my code so far (Circular Array).
Dim oCP As CircularPatternFeature
For Each oCP In oDef.Features.CircularPatternFeatures
THIS IS THE TROUBLE LINE If sketch = oCP.Parent Then
Set oCP = oDef.Features.CircularPatternFeatures.Item(oCP.Name)
Set oPar = oCP.Count
Xcount = oPar.Value
Set oPar = oCP.Angle
FitAngle = oPar.Value * Rad
If FitAngle = 360 Then
IncrementalAngle = 360 / Xcount
Else
IncrementalAngle = FitAngle / (Xcount - 1)
End If
For Counter = 1 To Xcount
Set oFPE = oCP.PatternElements.Item(Counter)
If oFPE.Suppressed = False Then
AbsoluteAngle = (Counter - 1) * IncrementalAngle
REM Call CircularArray
End If
Next Counter
End If
Next
I have a simple test part containing an extruded disk (Sketch1) and 8 holes on a pcd (Sketch2). I only want to array a sketch if it is arrayed,
Many thanks in advance!!!
IsoCAM
Solved! Go to Solution.