Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

How do I control the color of a body with parameter or rule? 1

Status
Not open for further replies.

sstevens

Automotive
Joined
May 29, 2007
Messages
4
Location
US
I'm wondering how to control the color of a body with a parameter or a rule using knowledgeware. Thanks in advance!
 
You can do it with a rule... possibly with a table.

Rule is the easiest, create a string parameter with multiple values (the different colors you want to set). Create a rule with if statements to set the color, see pic.
 
 http://files.engineering.com/getfile.aspx?folder=da9b14c0-34c5-48eb-8742-b642e04605ae&file=ENGTIPS_COLOR.png
sstevens

You can also use the RBG

Body .Color = "128,0,255"
or the Hex code
Body .Color = "#a0522d"

search color palette in the help for a code listing or you can obtain the color rgb from the custom color palette.


Win XP64
R20/21, 3DVIA Composer 2012, ST R20
Dell T7400 16GB Ram
Quadro FX 4800 - 1.5GB
 
Thanks so much for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top