×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Rules: Change of colour

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.

RE: Rules: Change of colour

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
http://www.plastal.com/

RE: Rules: Change of colour

(OP)
Thank you CBunes, this really works.
Best regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources