MKI_ENUMATTRIB_DATA (Basic Classes) Changed in Version 2022.1

www.CAD6.com

C++ Syntax

class MKI_ENUMATTRIB_DATA

{

  public:

 

  __int64 m_nEnumResult;

 

  __int16 m_nType;

  LPCWSTR m_pszName,

          m_pszValue;

 

  MKI_ENTITY_PTR m_pEntity;

  __int32 m_nAttribHandle,

          m_nStartIndex,

          m_nStartHandle,

          m_nPointIndex,

          m_nPointHandle,

          m_nOutlineIndex;

 

  void

  Init( void );

};

 

This structure contains a complete enumeration data description.

 

Element Description

EnumResult New in Version 2022.1

[__int64] Current enumeration warnings (see MKI_WARNING_*). You can set bits here to report problems to your calling procedure.

Type

[__int16] Type of attribute (see MKI_DB_ATTRIB_*).

Name

[LPCWSTR] Address of the attribute's name.

Value

[LPCWSTR] Address of the attribute's value.

Entity

[MKI_ENTITY_PTR] Address of the entity containing this attribute.

AttribHandle

[__int32] Handle of the attribute data block within the entity.

StartIndex

[__int32] Zero-based index of the starting point of the outline to which the attribute belongs (in case of MKI_ATTRIBMODE_OUTLINE or MKI_ATTRIBMODE_POINT).

StartHandle

[__int32] Handle of the starting point data block of the outline to which the attribute belongs (in case of MKI_ATTRIBMODE_OUTLINE or MKI_ATTRIBMODE_POINT).

PointIndex

[__int32] Zero-based index of the point to which the attribute belongs (in case of MKI_ATTRIBMODE_POINT) or identical to StartIndex (in case of MKI_ATTRIBMODE_OUTLINE).

PointHandle

[__int32] Handle of the point data block that contains the point to which the attribute belongs (in case of MKI_ATTRIBMODE_POINT) or identical to StartHandle (in case of MKI_ATTRIBMODE_OUTLINE).

OutlineIndex

[__int32] Zero-based index of the outline to which the attribute belongs (in case of MKI_ATTRIBMODE_OUTLINE or MKI_ATTRIBMODE_POINT).

 

Comment

The values of StartIndex, StartHandle, PointIndex, PointHandle, and OutlineIndex will only be initialised for point or outline attributes and only if the enumeration was started using the mode MKI_ATTRIBMODE_OUTLINE or MKI_ATTRIBMODE_POINT. If point or outline attributes are enumerated in an enumeration started with MKI_ATTRIBMODE_ALL, those values will be undefined!

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH