Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rules: Change of colour

Status
Not open for further replies.

Lea75

Mechanical
Feb 24, 2009
51
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.
 
Replies continue below

Recommended for you

This is a very simple way to solve your problem, but it requires the Knowledge Advisor Workbench:

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
 
Thank you CBunes, this really works.
Best regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor