Extended Object 144 "QR Code (Model 2)" (Entity Type "Extended Object") New in Version 2026.1

www.CAD6.com

 

The extended object "QR Code (Model 2)" is defined by CAD6studio and CAD6industrie.

 

Such a QR code is used for many purposes. Some are indicated by a starting keyword such as "https:", "mailto:", or "tel:" in the encoded text.

 

The default size is 1 millimeter per unit. The actual size and position is defined by the extended object's m_cDisplayMatrix.

 

Creation of this extended object is not supported in CAD6starter and CAD6engine Eco! If already created, it can be displayed and modified generally, but not modified parametrically.

 

Data Block Sequence

Data Block 1000( AlignMode, Form, Correction, Unused )

Data Block 1001( Text )

 

Parameters

AlignMode

[__int32] Alignment mode for the code, see MKI_ALIGNMODE_*.

Form

[__int32] Graphical form of the QR code. Possible value are:

0Solid squares.
1Squares with spacing.
2Rounded squares with spacing.
3Circles.

Correction

[__int32] Minimum level of error correction to be used. Possible value are:

0Weak (least robust, smallest code).
1Normal.
2Strong (more robust, larger code).
3Maximum (most robust, largest code).

If error correction stronger than the one selected does not increase the code's size, it will automatically be used.

Unused

[__int32] Unused, set to 0.

Text

[MKI_STRSHORTW] Text to be encoded. Its length may be up to MKI_LENGTH_TEXT_SHORT characters including the terminating zero character (0x00). See also Advanced Text Capabilities. The result will be converted to UTF-8 before encoding. The maximum encodable length depends on the content (numerical or alphanumerical) and on Correction. Up to about 1.200 characters are possible at least.

 

Interface Command Sequence

MKI_ExtOpen, OwnerID = MKI_DB_OWNER_MK, Type = MKI_OBJ_EXT_CODE_QR, Flag = MKI_EXTFLAG_TEXT

MKI_ExtAddInt32, Type = 1000, ElemCount = 4

MKI_ExtAddText, Type = 1001, Static = false

MKI_ExtFastInsert

 

Use code like the following to parse the data blocks of this entity in memory:

 

MKI_BLOCK_ENUM b1000( f_pExt ),

               b1001( f_pExt );

b1001.SetNext( b1000 );

 

__int32 nAlignMode  = b1000.Int32(0);

__int32 nForm       = b1000.Int32(1);

__int32 nCorrection = b1000.Int32(2);

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH