DATAKIT API  V2025.3
Color Mapping

This information is available from Solidworks 2006 version.


Priorities


          Instance color > Face color > Feature color > Body color > Part color


Mapping

SOLIDWORKS Entity Applied to DATAKIT Class Remarks
Instance Dtk_Component with InstanceComponentType  
Prototype/Part Dtk_Node containing Dtk_Body Overwritten by Body color
Body Dtk_Node containing Dtk_Body  
Feature Dtk_Face Overwritten by Face color
Face Dtk_Face

 

How to know the value of a bugged appearance

There is a bug inside Solidworks, where sometimes, when editing a appearance, it changes its value. This can be seen with the color changing on the body in the 3D rendered view.

For example, there is a feature colored in blue, but when entering the window to edit the corresponding appearance, the blue faces become grey. The main issue here, is that if we want to know what is exactly the RGB of this blue, we can't because it becomes grey when we try to edit it to see its value.

There is actually a way to know the value of this bugged appearance. It is to copy it. We can right-click "Copy Appearance", and then right-click "Paste Appearance" on any other feature. The copied appearance will not be bugged, so we can edit it to see its RGB value.