MKI_LayerAdd (Elements) Changed in Version 2019.0

www.CAD6.com

C++ Syntax

__int32

MKI_LayerAdd(

 MKI_CONST_LAYERDEF_REF f_rData );

 

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

 

Parameters

Data

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

 

Return Value

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

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH