MKI_PenSetActive (Elements) Changed in Version 2024.0

www.CAD6.com

C++ Syntax

bool

MKI_PenSetActive(

 __int32 f_nIndex,

 bool f_fApply );

 

Sets a new active pen in the current drawing.

 

Parameters

Index

[__int32] Zero-based index of the pen that shall be set active. Valid range: 0 <= Value <= MKI_PEN_MAX.

Apply New in Version 2024.0

[bool] If true, the new active pen will be assigned to all objects that are currently being edited by means of the "Modify Objects" command (if there are any). In that case, it will not be set as new active pen of the drawing.

 

Return Value

Returns true if successful, false if not.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH