Hi,
I'm running an iLogic script in my .iam file for creating, lets say, a box with each wall saved in a single .ipt file.
The box is built with 3 values: length, width and height.
Those 3 values are located in a skeleton file (which is a 'derived part' in every single .ipt wall file).
The user enters the values for width and height in an InputBox.
The length value should be picked from a list with 10 predefined options. Therefore I created a multivalue list.
The script is running fine, the box is created, but before (every) multivalue list shows up in iTrigger, I get an error, what gives the user an uncomfortable feeling.
What am I doing wrong?
MultiValue.SetList("skelet.ipt.length", 1160,1660,2160,2660,3160,3660,4160,5160,6160,7160) lengte = InputListBox("What is the length?", MultiValue.List("skelet.ipt.length"), length, Title := "main dimensions", ListName := "skelet.ipt.length") Parameter("skelet.ipt.length")=length
Solved! Go to Solution.
Solved by MingweiGao. Go to Solution.
It seems a typo in your code:
"lengte = InputListBox" -->"length = InputListBox"
Thanks for your reply Mingwei.
But I translated the Dutch word 'lengte' to 'length' for this forum post and I forgot to change this one
So... anyone idea's?
Why you used the Length as the intermediate variable? I just skip it and use the following code and no error pops up:
MultiValue.SetList("length", 1160,1660,2160,2660,3160,3660,4160,5160,6160,7160)
length=InputListBox("What is the length?", MultiValue.List("length"), length, Title :="main dimensions", ListName :="length")
Please refer to the attached part.