![]() |
ApplyOffset (class MKI_BLOCK_ENUM) Changed in Version 2021.0 |
www.CAD6.com |
C++ Syntax__int16 MKI_BLOCK_ENUM::ApplyOffset( void );
Initializing m_pBase with current data block area address m_nBase plus the current offset m_pOffset.
This does not change the value of m_pOffset! Call MKI_BLOCK_ENUM::AddSizeToOffset or MKI_BLOCK_ENUM::SetAndApplyOffset to change the offset.
This is usually used in loops such as:
MKI_BLOCK_ENUM b1( pObj ); do { switch( b1.ApplyOffset() ) { case MKI_DB_POINT_START: // Do something with the data block break;
case MKI_DB_POINT_END: // Do something with the data block break;
[...] } } while( b1.AddSizeToOffset() );
Return ValueReturns 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