SetBaseAndResetOffset (class MKI_BLOCK_ENUM) New in Version 2021.0

www.CAD6.com

C++ Syntax

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_OBJECT_PTR f_pObj );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_INSTANCE_PTR f_pInst );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_CLIP_PTR f_pClip );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_REF_PTR f_pRef );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_MAPPING_PTR f_pMap );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_GROUP_PTR f_pGroup );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_HATCH_PTR f_pHatch );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_EXT_PTR f_pExt );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_BLOCK_PTR f_pBlock );

 

__int16

MKI_BLOCK_ENUM::SetBaseAndResetOffset(

 MKI_CONST_ENTITY_ATTRIB_PTR f_pAttrib );

 

Initializes m_pEntity with the given entity's address and m_pBase with the given entity's base address. Sets m_nHeader to the correct value, m_nOffset to zero, and the current address m_pData to the base address.

 

This function is only provided for use in rare cases where one eumerator must be re-used for different entities subsequently (e.g. in case of static or global enumerators that need to be reinitialized for each new use). A much better practice, however, is to declare a new local enumerator for each use by means of the standard constructor!

 

Return Value

Returns the type of the data block it now points to (m_cHeader.m_nBlockType) or MKI_DB_END in case of an error.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH