10-27-2023
02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-27-2023
02:15 AM
Hi,
Assuming that the code block iterates through all components and the oCompName is correctly reading the occurence.Name the following should be checked:
First, make sure that your parameter type for the number of patterns is unitless:
If (oCompName = "HOLDER-A:" & i) Or (oCompName = "HOLDER-B:" & i) Then
Dim patName As String = oCompName & ":PATTERN"
Dim patAngl As Integer = 360 / pAts
Dim circPattern = Patterns.AddCircular(patName, oCompName, pAts, patAngl, oCompName , "Z축", axisNaturalDirection := True, lockRotation := False)
End If
What is changed is the reference to 'pAts' in the function for the pattern.
Please let me know if it worked. If not, please share the code where oCompName is declared to get a better understanding.
Kind regards,
Alexander Boogaard