User input

User input

mk92
Collaborator Collaborator
244 Views
1 Reply
Message 1 of 2

User input

mk92
Collaborator
Collaborator

Hi,

 

we have an Part with 4 Parameter, lets call them A,B,C,D they are depending on each other in their formulas.

 

If A changes, the other three have to be new calculated.

I got this working, but i think in an unelegant way. I use a Parameter like A-Memory as help and i say:

If A <> A-Memory then

B = ...
C...
D..

End if

 

And the same for B,C,D. Is there a better way?

 

 

Now the Point where i dont know any solution except a huge ton of If else chains.

 

If A and B Change at the same time (which is possible in the Factory Design Suite) the other 2 are new calculated and A,B are fix.

 

Any ideas?

 

Kind regards

0 Likes
245 Views
1 Reply
Reply (1)
Message 2 of 2

Owner2229
Advisor
Advisor

Hi, it would be nice to see the equations for these to fully understand your request, but here's what comes on my mind:

 

You can create 4 rules, each starting with:

s = A 'or B or C or D

The "s = A" then serves as a trigger when the parameter "A" changes.

Below this you can write your equations, e.g.:

s = A
B = A * 2
C = B * 3
D = A + 4

Don't wrap it in "Parameter("d0"). E.g. for the parameter called "d0" it will be:

s = d0

 

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
0 Likes