MKI_DEFAULTDEF (Entity Data Classes) Changed in Version 2014.0 |
www.CAD6.com |
C++ Syntaxclass MKI_DEFAULTDEF { public:
__int32 m_anPens [MKI_DEFAULT_MAX], m_anLayers[MKI_DEFAULT_MAX];
void Init( void ); };
This structure contains the default settings for pen and layer assignment.
Element Descriptionm_anPens [__int32[]] Indexes of pens that will automatically be assigned to object created in some standard situations. Use the MKI_DEFPEN_* constants as field indexes to access elements of this array. If any of these indexes is -1, there is no default pen defined for this situation, i.e. the object will be assigned to the currently active pen. m_anLayers [__int32[]] Indexes of layers that will automatically be assigned to object created in some standard situations. Use the MKI_DEFLAYER_* constants as field indexes to access elements of this array: If any of these indexes is -1, there is no default layer defined for this situation, i.e. the object will be assigned to the currently active layer.
MKD SyntaxThe section =DEFAULT= contains the default pens and layers that were active when the drawing was saved. These default values are used by the application to assign default pens and layers to newly created objects.
=DEFAULT=; Pens[0], Pens[1], ... ; Layers[0], Layers[1], ... ; =END=;
If the section =DEFAULT= does not exist, assume all default indexes to be -1, i.e. no default pen or layer is defined. The number of indexes stored in each array may vary. Do always read as many values as available and set all other values to -1.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH