MKI_EditApplyMatrix (Entity Editing) New in Version 2025.1

www.CAD6.com

C++ Syntax

bool

MKI_EditApplyMatrix(

 __int32 f_nFlag,

 MKI_CONST_MATRIX_REF f_rMatrix,

 __int32 f_nScaleMode );

 

Multiplies all entities included with the given flag with the given matrix. This will directly edit the entities without creating a duplicate and bypassing the undo structure.

 

This procedure will not create undo information, regardless of whether it is called inside a MKI_UndoInitProcess and MKI_UndoFinishProcess bracket or not!

 

Parameters

f_nFlag

[__int32] Determines which entities shall be modified. Use 0 to modify all entities in the drawing, MKI_FLAG_USE to modify identified entities, or MKI_FLAG_PREVIOUS to modify all previously identified entities (see MKI_FLAG_*).

f_rMatrix

[MKI_CONST_MATRIX_REF] Matrix with which all identified entities shall be multiplied. If Matrix is nullptr, the entities will not be modified.

f_nScaleMode

[__int32] Determines if dimension texts sizes, line widths, and line type length factors shall be scaled according to the matrix or not. A bit-wise OR combination of the following values (see MKI_DISPLAYMODE_*):

MKI_DISPLAYMODE_DEFAULT

MKI_DISPLAYMODE_SCALED_WIDTH

MKI_DISPLAYMODE_SCALED_LENGTH

MKI_DISPLAYMODE_SCALED_DIMTEXT

 

Return Value

Returns true if successful. If false is returned, this is usually due to invalid parameters.

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH