Rules - editable parameter command

Petr Štěnička

Rules - editable parameter command

Hello, 

I am using KWA rule to drive several parameters according to some equations - this is working perfectly fine for me. I came now to the situation, when I want to set theese parameters manually sometimes, but I am not able to do, because theese driven parameters are grey - non-editable.

I was thinking to add some driving string-parameter, where I will change behaviour from manual-editing to equation based driving, but I am not able to find command, which will change those driven parameters to manually editable ones.

It should look like:

Driving parameter with 2 multiple values- "Select entering method" -

a) Manually - my parameters will be manually editable

b) Equation driven - parameters will be driven by equation

Is there some command to switch this behaviour?

Screenshot of my code in attachment.

Thanks,

PS

 

Attachments

  • Rule.png (145.5k)

Balla Zoltan

RE: Rules - editable parameter command
(in response to Petr Štěnička)

Hy,

I don' know about such a possibility you mentioned (I'm not a specialist by the way).

But I would make some neu Parameters (the input_Parameter for the Manual case) that could be hidden in Automatic modus and shown in Manual Modus. This Parameter could be then attached to the existig ones.

 

The visibility of the new created paramters could be driven using the show property of the parameter:

something like this:

 

if KOL_KANAL=="MANUAL"

{

     Input_Parameter1.show=True

     VNEJSI_POLSIRKA_KOLEJOVEHO_KANALU_ROVNA=Input_Parameter1

 

 

}

else if KOL_KANAL=="BOStab"

{

     Input_Parameter.show=False

    VNEJSI_POLSIRKA_KOLEJOVEHO_KANALU_ROVNA=27,5 mm

}

Edited By:
Balla Zoltan[Subscriber Members] @ May 07, 2020 - 01:46 PM (Europe/Berlin)

Petr Štěnička

RE: Rules - editable parameter command
(in response to Balla Zoltan)

Hi Balla, 

thanks a lot, this other parameters also came to my mind, this trick with hiding them is great idea, I will do the job like this, when no solution for editing original parameters will come.

 

Thank you for your reply,

 

Petr

Mauro MARTARELLO

RE: Rules - editable parameter command
(in response to Petr Štěnička)

Hello,
if you manually deactivate rule, you can see that parameters driven by rule became editable.
So, you can create a Reaction, fired by "Select entering method" parameter change, that activate or deactivate rule.

Hope this can help to achieve aspect result

Douglas Snell

RE: Rules - editable parameter command
(in response to Petr Štěnička)

You could also look to control the 'Activity' parameter of the driving relations by using a Formula driven from a Boolean Parameter

When Activty = False, the Formula is Deactivated allowing direct modification.  When Enabled the Formula Drives the value again as it had previously.

--Doug

Petr Štěnička

RE: Rules - editable parameter command
(in response to Mauro MARTARELLO)

Hi guys,

 

in the end I created another rule, which is activating/deactivating my rule with equation as Mauro suggested, I will post a screenshot to help another people in the future.

 

Like this works exactly as I wanted, thanks a lot for your help!

PS

Attachments

  • Rule2.png (44k)