MKI_ColorAdd (Elements) New in Version 2019.0

www.CAD6.com

C++ Syntax

__int32

MKI_ColorAdd(

 MKI_CONST_COLORDEF_REF f_rData );

 

Adds the new color definition pointed to by Data as a new color to the current drawing.

 

Parameters

Data

[MKI_CONST_COLORDEF_REF] Address of a buffer containing the new color definition. The name of the color must not begin with a '*' character and must not be used yet!

 

Return Value

Returns the index of the new color within the current drawing if added successfully. Otherwise, a negative value is returned (especially if the given color's name is already used).

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH