MKI_ObjectOpen (Entity Creation)

www.CAD6.com

C++ Syntax

MKI_ENTITY_OBJECT_PTR

MKI_ObjectOpen(

 __int32 f_nType );

 

Opens a temporary object for data block input. Once opened, the temporary object can be filled with data blocks and subsequently be terminated and appended to a memory list or to a block.

 

Only one temporary object is available at a time. Anyway, other temporary entities like instance, extended object, block and group can be open simultaneously. After opening the temporary object, it must later be closed using MKI_ObjectClose or MKI_ObjectFastInsert.

 

Parameters

Type

[__int32] Type of object to be created (see MKI_OBJ_*).

 

Return Value

Address of the temporary object, if successful. This address can be used to modify the object's extended properties (located in ReturnValue->XProperty). Please do not modify any other value! If nullptr is returned, this indicates that another temporary object is already open.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH