Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Color code - where do we find this?

Status
Not open for further replies.

mntnbiker

Industrial
Jul 1, 2008
5
US
I found some snippets of code to change colors of features in a Catpart PartBody via Knowledgeware. Where can I find the numbering code for particular colors? Here are some snippets that I am going to try to use to make this work in my Catpart:

PartBody\Cylinder.Color = "#272727" (I believe these are just RGB color codes which is probably what I will try to use)

PartBody\ColorRing.Color = "Yellow" (I think this is just a basic color that Catia recognizes without needing the RGB code?)

PartBody\ColorRing.Color = "#FFA500" (this is an orange color but not sure where this color code comes from?)
 
Replies continue below

Recommended for you

Looks like I need to use this code:

PartBody\ColorRing.Color = "#FFA500"

I am searching around for these color codes. Is there a list of colors? Can anyone point me in the right direction where to look?
 
Those are hexadecimal colour codes. I zipped up some colour pdf snippets i have.
Colour palette.pdf - Catia colours - rgb format
Hex color codes.pdf
hex_colors.jpg - swatch style image if you want to throw a dart at a color.

There are 3 ways to specify the colour in KBE

RGB
UNC\Hole.3 .Color = "128,0,255"
`Counter and clear\Hole.4` .Color = "128,64,64"

Colour name - see the name in Colour palette.pdf
PartBody\ColorRing.Color = "Yellow"
if the colour does not exist or name is not exact the colour will be black.


hexadecimal format
PartBody\ColorRing.Color = "#FFA500"

Regards,
Derek


Win XP64
21SP7/22SP5, 3DVIA Composer 2013X, ST R20
Dell T7400 16GB Ram
Quadro FX 4800 - 1.5GB
 
 http://files.engineering.com/getfile.aspx?folder=09033c81-80d4-4e07-8f1c-7c68c3301b0b&file=some_colour_resources.zip
FYI - I used the RGB values which is what I prefer to use.

Thanks Derek!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top