MKI_LAYERDATA (Entity Data Classes) Changed in Version 2022.1

www.CAD6.com

C++ Syntax

class MKI_LAYERDATA

{

  public:

 

  MKI_LAYERPROPERTY m_cData[MKI_LAYER_MAX];

 

  void

  Init( void );

 

  void

  Apply( const MKI_LAYERDATA& f_rData );

 

  bool

  IsIdentical( const MKI_LAYERDATA& f_rData ) const; Changed in Version 2022.1

};

 

This structure contains property sets for all layers.

 

Element Description

m_cData

[MKI_LAYERPROPERTY[]] Property sets for all layers. The first entry corresponds to layer index 1, the last entry to layer index MKI_LAYER_MAX.

 

MKD Syntax

The data type MKI_LAYERDATA is used to store all layers' properties in a mapping. They can override the line width, line color, line type etc. of all objects assigned to a layer. The array is stored as a list of indexed entries. The list usually contains only those entries that actually override anything, i.e. whose flag is non-zero. Upon reading this list, all other entries shall be set to their default values.

 

Header

TotalNum;

 

Entry for each Layer Property Definition

LayerIndex,Property;

 

Element Description

m_nTotalNum

[__int32] Number of layer properties to follow. Valid range is 0 to MKI_LAYER_MAX inclusive.

m_nLayerIndex

[__int32] Index of the layer in the array, valid range is 0 to MKI_LAYER_MAX - 1 inclusive.

m_cProperty

[MKI_LAYERPROPERTY] Property sets for one layer.

 

Example

1;

3,8,2,0/1/0/0,0/1/0/0,0.0,0,0,0,0,1.0;

 

The line color of the fourth layer (array index 3) will be set to RGB red, all other properties remain unchanged.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH