Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic multivalue list unhandled exception

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
RemcoVerschuren
1346 Views, 5 Replies

iLogic multivalue list unhandled exception

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

 

 

 

5 REPLIES 5
Message 2 of 6

It seems a typo in your code:

 

"lengte = InputListBox"  -->"length = InputListBox"

 

 



Steven Gao

Sr. SQA Engineer

Message 3 of 6

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 Smiley Wink

 

So... anyone idea's?

Message 4 of 6
mrattray
in reply to: RemcoVerschuren

Try this option at the beginning of your rule:
MultiValue.Quiet = True
Mike (not Matt) Rattray

Message 5 of 6

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.



Steven Gao

Sr. SQA Engineer

Message 6 of 6

That did it MingweiGao. Thanks a lot!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report