Get RGB value for new face style

Creator
Creator

Hi

I want to Get / Create a new face style color in part environment.

Is there any macro for adding/creating visual styles color of body / face selected (textures modifying).

 

I have more .stp file (not S.E.) with color of faces not in my model faces styles (View > Style > Styles).

I would selected one face and get the RGB color of it, than storage the new color in the Face Styles dialog.

 

Sorry for my english ( English isn't my first language, so my expression maybe not very clear...)

Mauro

11 REPLIES

Re: Get RGB value for new face style

Phenom
Phenom

Hi Mauro:

 

This free macro from @JasonTitcomb might just be the starting point you are looking for.

Hope you find this useful - thanks would go to Jason for generously sharing it.

 

~Tushar

 

Re: Get RGB value for new face style

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

For step files and other foreign files look at using SaveAs .plmxml.

That .xml file will have the RGBA values of the face colors.

LMGi
www.TLMGi.com

Re: Get RGB value for new face style

Creator
Creator
??
inside of the .xml file I haven't got found any rgb string.
The focus is:
1) select the face with color not in style document color
2) output the value of selected color

I have tried the free macro from @JasonTitcomb but only works with default face style colors

Re: Get RGB value for new face style

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Look in the .plmxml file for the following.

It won't be easy but I think you can track the materialid to the faceid.

<Material id="id872" diffuse="0.7333333492279053 0.800000011920929 0.9333333373069763" shininess="0.8571428656578064" ambient="0.7333333492279053 0.800000011920929 0.9333333373069763" emissive="0 0 0" specular="1 1 1"></Material>
LMGi
www.TLMGi.com

Re: Get RGB value for new face style

Experimenter
Experimenter

Hello Tushar,

I have download the free macro from your commnet. Dosen't work. I have window 7 X64 on my computer. Can you tell me if the macro runs on this version of windows?

 

Thanks!

 

Best regards,

Remus

Re: Get RGB value for new face style

Phenom
Phenom

Hi @Remus_Diaconu

 

The macro is written by @JasonTitcomb

He would be able to comment on it better.

 

Are you getting any error ?

 

~Tushar Suradkar

fb.pngSolid Edge Users Facebook Group

 

Re: Get RGB value for new face style

Experimenter
Experimenter

Hi Tushar,

the programm dosen't start. i have found another program to obtain the RGB code for SolidEdge using standard codification.

 

 

Thanks for your answer!

 

Best regards,

Remus Diaconu

Re: Get RGB value for new face style

Creator
Creator

Good

Please shareit for all the community (and for me)

Thanks you

Re: Get RGB value for new face style

Phenom
Phenom

Wonderful.

Kindly share the other macro or the details on how to get it on this forum.

Thanks.

 

~Tushar