The complete idiots fast track guide to iLogic rules

The complete idiots fast track guide to iLogic rules

fridtjofZM5ME
Collaborator Collaborator
724 Views
3 Replies
Message 1 of 4

The complete idiots fast track guide to iLogic rules

fridtjofZM5ME
Collaborator
Collaborator

Just to be clear, I have currently absolutely no idea what I'm doing with regards to iLogic programming, as this part of Inventor was completely omitted during the three years of higher education. I do however have a very basic understanding of how mathematical logic works, so I had a crack at it, and not surprisingly the three lines of code illustrated below didn't compute. Does Autodesk (or anyone else for that matter) have an illustrative web page of some kind that shows how the various commands must be written to work, without having to read through 50 pages of introduction to the subject?

 

In the simlple case below here, I'm trying to set up a rule for "parameter A" that has one out of two values, one being a set "value_1"  and the other being an expression="Value_2". Which of the two values "parameter A" has is based on a criteria of whether or not "parameter B" has a value greater or equal to 990, or not.

 

Skjermbilde.JPG

0 Likes
Accepted solutions (1)
725 Views
3 Replies
Replies (3)
Message 2 of 4

mikejones
Collaborator
Collaborator
Accepted solution

Try setting it out like this

 

If some parameter = some value then

       Do something with that value

Elseif the parameter = another value then

      Do something with that value

end if

 

I think that should solve it for you

 

Mike

Autodesk Certified Professional
Message 3 of 4

fridtjofZM5ME
Collaborator
Collaborator

Looks like that did the trick this time at least. Thanks!

0 Likes
Message 4 of 4

ianteneth
Advocate
Advocate

Hi @fridtjofZM5ME,

 

To your other question about iLogic tutorials, here is a Youtube playlist that may help you.

 

iLogic Playlist:

https://www.youtube.com/watch?v=9gY8vclVNW8&list=PLetTiL10gBjH1duj0BKQObSejXfTD16Vh