Synopsis
PDX_MSGT s046_EntityGetColor(long option, MDA_PTR step_db_ptr, double *red_val, double *green_val, double *blue_val, char **name, int *styl_hierarchy)
Purpose
Gets a Color definition for the given STEP entity.
Description
Given a STEP entity, program gets the name of the color, RGB values and the level at which color values are defined. Program finds entity's (step_db_ptr) applied styled item first and gets color_ptr from it. Then program obtains color values red_val, green_val, blue_val and its name from the color_ptr. It also returns the level (styl_hierarchy) at which the color value is defined.
Input
option
STEP_SOLID
Get color values for Solid entity
STEP_FACE
Get color values for Face entity
STEP_EDGE_CURVE
Get color values for Edge_curve entity
STEP_SURFACE
Get color values for Surface entity
STEP_CURVE
Get color values for Curve entity
step_db_ptr
The STEP entity database pointer
Output
red_val
Value of the red color
green_val
Value of the green color
blue_val
Value of the blue color
name
Defined color name
styl_hierarchy
Hierarchy level at which color value is defined
Return
S046_NOERR
S046_INVALID_ENT
Low Level error return
.fi