Overrule parameter

Overrule parameter

jostroopers
Collaborator Collaborator
476 Views
3 Replies
Message 1 of 4

Overrule parameter

jostroopers
Collaborator
Collaborator

I liked what help with making override parameters.

I've made a meander, see dwf and ipt.

In order to determine the respective distances of the strings I created parameters, S1, S2, etc.

Now I can enter any distance apart.

Now I made a new parameter "SteekOverRule" that has to override these parameters.

So if there is a value entered in this parameter must get the other parameters overrule and for all strings that measure adoption.

If this parameter is set to zero then the other parameters apply.

I know that with the if and elseif it must be possible but do not know when the parameter SteekOverrule returns to zero and the other parameters must be active.

Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
0 Likes
Accepted solutions (1)
477 Views
3 Replies
Replies (3)
Message 2 of 4

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

I am struggling to understand "I know that with the if and elseif it must be possible but do not know when the parameter SteekOverrule returns to zero and the other parameters must be active."

 

I checked the part, SteekOverrule has only three avaiable values: 75, 105, 90. I have no idea when it can be zero.

 

Or,.did you want to watch when the param is modifed ? In Inventor API, you can use then event ModelingEventsSink.OnParameterChange. In iLogic, you could add the event trigger "Any Modal Parameter Change"

0 Likes
Message 3 of 4

jostroopers
Collaborator
Collaborator
Accepted solution

Hi Xiaodong

I already have a solution.

I made an extra parameter 000mm who is part of the parameter SteekOverrule.

I also make parameters S1_Old and use them in my form.

Then i made the ilogic rule.

If SteekOverrule = 0 mm Then
S1 = S1_Old
S2 = S2_Old
S3 = S3_Old
S4 = S4_Old
S5 = S5_Old
  Else
S1 = SteekOverrule
S2 = SteekOverrule
S3 = SteekOverrule
S4 = SteekOverrule
S5 = SteekOverrule
End If
iLogicVb.UpdateWhenDone = True

 

Thanks for responding.

Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
0 Likes
Message 4 of 4

jostroopers
Collaborator
Collaborator

Here is the part with the ilogic rule

Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
0 Likes