in precondition, assign how many values to enter
mko_sc
Member Posts: 27 PRO
I need to: generate N number of input boxes (isLength),based on the number N entered by the user,
Example
Quantity of measurements: ____3 <(isInteger)
Distance 1 var1: ______ <23mm
Distance 2 var2: ______ <10mm
Distance 3 var3: ______ <12mm
Quantity of measurements: 5
Distance 1 var4: ______ <13mm
Distance 2 var5: ______ <...mm
Distance 3 var6: ______ <...mm
Distance 4 var7: ______ <...mm
Distance 5 var8: ______ <...mm
or give me some examples to take inspiration from?
Thank you
Tagged:
0
Comments
-
You can use array parameter in combination with editing logic function to make it show array of inputs of the desired length. And editing logic function could also handle your logic about distance constraints depending on the input number.
0 -
Thanks konstantin, after your answer I found an old request on the forum that I can use as a starting point.and a great example to get started:
https://cad.onshape.com/documents/85ead7e8198b48c695b39b58/w/4fb966357258b36a88ac0430/e/4eb384334534b70122d7481c
I will try to adapt it to my need. Thanks1
