Adding a driven rule to a parameter

Adding a driven rule to a parameter

weaversystems.shop
Participant Participant
512 Views
3 Replies
Message 1 of 4

Adding a driven rule to a parameter

weaversystems.shop
Participant
Participant

I am trying to set up an iLogic rule that automatically calculates the amount of 48" wall plates needed for a given trailer size. I have the rule made and the parameters set up, but I don't know how to bind the rule to the parameter as a Driven Rule and I can't find any resources online to tell me. 

 

In the files I attached, the left wall folder has a model with the rule already driving it. The Tapered Sidewall folder has my model with the parameters and rule in place, but no Driven Rule. If I could get some help in figuring out how to set the Driven Rule, I'd appreciate it.

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

A.Acheson
Mentor
Mentor

Any chance of attaching the rule and some images? Some forum users won't be able to download the files due to inventor versions or security concerns so having the concept images and the rule might help you along the way. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

Cadkunde.nl
Collaborator
Collaborator
Accepted solution

Rules in ilogic are automatically executed when any of the parameters in blue text change

 

When I want my rule to run om some parameters I do not use in the code, I start the code with something like this:

 

Dim startParam As Double
startParam = Length
startParam = Width
startParam = Thickness
startParam = Height

If you would make an ilogic rule with:

Length = 100

 

Then you go to the parameter list, and you see that the parameter "Length" column "Driving Rule" has the name of your rule 

0 Likes
Message 4 of 4

weaversystems.shop
Participant
Participant

I didn't have the parameters for both iLogic variables defined before I tried to write the code, so it had nothing to reference. After I took a closer look and rewrote my parameters to include both variables, it worked perfectly. Your reply just confirmed that I had done it right. Thank you.

0 Likes