MKI_ObjectFastInsert (Entity Creation) Changed in Version 2022.2 |
www.CAD6.com |
C++ SyntaxMKI_ObjectFastInsert( MKI_CONST_ENTITY_PTR f_pRefEntity );
This procedure terminates a currently opened temporary object (see MKI_ObjectOpen) and inserts it to a currently open temporary clipping surface, extended object, group, block, or to the current drawing (in that order).
ParametersRefEntity New in Version 2022.2 [MKI_CONST_ENTITY_PTR] Address of a reference entity behind which the object shall be inserted. If RefEntity is nullptr, the object is appended at the end.
Return ValueReturns the address of the new object if it was successfully inserted. Returns nullptr if the insertion was not successful, normally due to insufficient memory.
Regardless of the result, the temporary object is closed afterwards (either because it was not open to start with, or because it was just closed before trying to insert it).
CommentThis procedure is a kind of macro that executes steps similar to the following code segment:
MKI_ENTITY_OBJECT_PTR pNewEntity = MKI_ObjectInsert( f_pRefEntity ); return( pNewEntity );
This causes the temporary object to be terminated, initialized and then inserted to the current drawing. Afterwards, it is closed. For a detailed description, see the referenced procedures' descriptions.
If possible, you should use this command instead of calling the separate procedures to increase speed and to reduce code size.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH