×
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

Color code - where do we find this?

Color code - where do we find this?

Color code - where do we find this?

(OP)
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?)

RE: Color code - where do we find this?

(OP)
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?

RE: Color code - where do we find this?

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

RE: Color code - where do we find this?

(OP)
Thanks again Derek!

RE: Color code - where do we find this?

(OP)
That worked like a charm!!!

RE: Color code - where do we find this?

(OP)
FYI - I used the RGB values which is what I prefer to use.

Thanks Derek!

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