MKI_ObjectAddDataBlock (Entity Creation) Changed in Version 2015.0

www.CAD6.com

C++ Syntax

bool

MKI_ObjectAddDataBlock(

 __int32 f_nType,

 __int16 f_nElemType,

 __int16 f_nElemCount,

 const void* const f_pData,

 __int32 f_nBytes );

 

Adds a data block to a previously opened provisional object (see MKI_ObjectOpen).

 

Parameters

Type

[__int32] Data block type. If ElemType is MKI_DB_TYPE_NATIVE, this value must be one of the predefined native data block types (see MKI_DB_INFO_*).

If ElemType is MKI_DB_TYPE_POINT and ElemCount is 1, this value may be one of the predefined data block point types (see MKI_DB_POINT_*).

In all other cases, Type may have any value between 1000 and 29999 inclusive. 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.

ElemType

[__int16] Type of elements that are stored in the data block (see MKI_DB_TYPE_*).

ElemCount

[__int16] Number of elements that are contained in the data block. If ElemType is MKI_DB_TYPE_NATIVE, this value should always be zero. If ElemType is either MKI_DB_TYPE_BINARY, this value should be identical to Bytes. If ElemType is either MKI_DB_TYPE_TEXT, this value should be at most half as much as Bytes. Valid range is 0 to MKI_DB_SIZE_MAX.

Data

[const void* const] Address of the data to be copied to the data block.

Bytes

[__int32] Total size of the data in bytes.

 

Return Value

Returns 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 2025.0 - Copyright 2025 Malz++Kassner® GmbH