The GetLayerRGBColor transaction returns the color of the specified layer or CAD layer, expressed as an RGB value.
Type XTYP_REQUEST
Syntax [GetLayerRGBColor(docwinID, layerID, <pageID>)]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific |
|
layerID |
DWORD |
identifier of the layer or CAD layer to query | |
|
pageID |
DWORD |
0 | pageID |
current | specific. Optional parameter. |
|
Reply |
Data type |
Values |
Meaning |
|
red |
WORD |
1 to 255 |
red color component |
|
green |
WORD |
1 to 255 |
green color component |
|
blue |
WORD |
1 to 255 |
blue color component |
Remarks
If the layer is default color, a value of -161 is returned.
Release information
Added in Release 4.31.
See also