Rules: Change of colour
Rules: Change of colour
(OP)
I'd like to create a rule that changes the colour of the main body of a part to yellow if a dimension is equal to 50mm
Is it possible to do it with the rule editor? How?
Or is there any other procedure?
Please, let me know your experiences.
Thank you in advance and regards.
Is it possible to do it with the rule editor? How?
Or is there any other procedure?
Please, let me know your experiences.
Thank you in advance and regards.





RE: Rules: Change of colour
I made a simple cylinder and a parameter that governs the diameter of it. Then I entered the Knowledge Advisor WB and created a Reaction. For the reaction I set Source type to Selection and clicked my parameter in the spec tree. When you're done your parameter should be available in Sources. Then for the event I set ValueChange and with Knowledgeware action selected entered this:
if (test >= 50mm)
PartBody.Color = "#FF0000"
else
PartBody.Color = "#CCCCCC"
(test was the name of my parameter in this example)
Now if I set the parameter to anything below 50mm the PartBody will become grey, but red for anything above or equal to.
This was done with V5R18SP4.
Hope this'll be of some help for you.
-----------------------
Christian Bunes
http://www.plastal.com/
RE: Rules: Change of colour
Best regards