Synopsis
PDX_MSGT s214_EntityGetColor(long option, MDA_PTR step_db_ptr, double *red_val, double *green_val, double *blue_val, char **name, PDX_BOOL *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
Options (not used)
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
SGDX_NOERR
SGDX_INVALID_PTR
SGDX_NOGDXENTITY
Low Level error return
.fi