Message 1 of 4
Input the number of circular patterns as a parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello
I completed the code to create a pattern using iLogic code.
I would like to input the number of patterns as a parameter so that the number of patterns changes depending on the parameter value.
However, since it is entered as a value rather than a parameter, the model does not change even if the parameter changes.
In the code, only integer values can be entered.
What should I do?
Please refer to the code below.
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, Parameter("HOLA_C"), patAngl, oCompName, "Z축", axisNaturalDirection := True, lockRotation := False)