|
MKI_ObjectAddDataBlock (Entity Creation) Changed in Version 2015.0 |
www.CAD6.com |
C++ Syntaxbool MKI_ObjectAddDataBlock( __int32 f_nType, __int16 f_nElemType, __int16 f_nElemCount, const void* const f_pData, const size_t f_nSize );
Adds a data block to a previously opened provisional object (see MKI_ObjectOpen).
Parametersf_nType [__int32] Data block type. If f_nElemType is MKI_DB_TYPE_NATIVE, this value must be one of the predefined native data block types (see MKI_DB_INFO_*). If f_nElemType is MKI_DB_TYPE_POINT and f_nElemCount is 1, this value may be one of the predefined data block point types (see MKI_DB_POINT_*). Valid range in all other cases: 1000 ≤ x ≤ 29999. Such a data block will not be modified by the serving application in any case and can be used to store plug-in-specific data. f_nElemType [__int16] Type of elements that are stored in the data block (see MKI_DB_TYPE_*). f_nElemCount [__int16] Number of elements that are contained in the data block. If f_nElemType is MKI_DB_TYPE_NATIVE, this value should always be zero. If f_nElemType is either MKI_DB_TYPE_BINARY, this value should be identical to f_nSize. If f_nElemType is either MKI_DB_TYPE_TEXT, this value should be at most half as much as f_nSize. Valid range: 0 ≤ x ≤ MKI_DB_SIZE_MAX. f_pData [const void* const] Address of the data to be copied to the data block. f_nSize [const size_t] Total size of the data in bytes.
Return ValueReturns true if the data block was added successfully. If false is returned, this indicates that the object would be too large after adding this data block.
|
CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH