Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ysbaodnj
208 Views, 3 Replies

Input the number of circular patterns as a parameter

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)