MKI_PatchInsert (Entity Creation) Changed in Version 2022.2

www.CAD6.com

C++ Syntax

bool

MKI_PatchInsert(

 __int32 f_nPointNum,

 __int32 f_nInvisible,

 MKI_CONST_POINT_PTR f_pPoints,

 MKI_CONST_PATCHPROPERTY_REF f_rProperty );

 

This procedure creates an entity of type MKI_ENTITYTYPE_PATCH and inserts it into the currently open extended object display list.

 

This entity type may only exist inside the display list of extended objects.

 

Parameters

f_nPointNum

[__int32] Number of points in the list. Valid range is 2 to MKI_POINTS_PER_PATCH.

f_nInvisible

[__int32] Bit-wise OR combination of invisibility and inactivity flags for the edges of the patch (see MKI_PATCH_*).

f_pPoints

[MKI_POINT_PTR] Address of a list of points.

f_rProperty Changed in Version 2022.2

[MKI_CONST_PATCHPROPERTY_REF] Address of properties to be assigned to the patch.

 

Return Value

Returns true if the patch was created successfully. If false is returned, this indicates an out-of-memory or invalid scope situation.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH