MKI_EntityLine (Entity Creation) New in Version 2025.1

www.CAD6.com

C++ Syntax

MKI_XPROPERTY_PTR

MKI_EntityLine(

 double f_dX1,

 double f_dY1,

 double f_dX2,

 double f_dY2 );

 

A macro-style command that creates a line as an object of type "line" with default properties and inserts it to a currently open provisional clipping surface, extended object, group, block, or to the current drawing (in that order).

 

Parameters

f_dX1

f_dY1

[double] Coordinates of the line's start point in internal [mm] (relative to the internal origin, scale-independent). Valid range: MKI_COORD_MIN <= Value <= MKI_COORD_MAX.

f_dX2

f_dY2

[double] Coordinates of the line's end point in internal [mm] (relative to the internal origin, scale-independent). Valid range: MKI_COORD_MIN <= Value <= MKI_COORD_MAX.

 

Return Value

Returns the address of the newly created entity's property set is successful, else nullptr.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH