Extended Object 148 "Bar Code ITF" (Entity Type "Extended Object") New in Version 2026.1

www.CAD6.com

 

The extended object "Bar Code Code128" is defined by CAD6studio and CAD6industrie.

 

This type of bar code is used for GTIN-14 and other purposes. It can only represent digits.

 

The default size is 1/3 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 1006( AlignMode, Height, Mode, Unused )

Data Block 1007( Text )

 

Parameters

AlignMode

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

Height

[__int32] Height of the bar code in units. Valid range: 10 ≤ x ≤ 200. Typical value is 50.

Mode

[__int32] Bit-wise OR combination of flags that enable special modes. The following flags are defined:

0x00000001

The content shall be interpreted as GTIN-14. The content must be exactly 13 or 14 digits. If 13 digits, a checksum digit will automatically be added. If 14 digits, the checksum digit will be checked. Any other number of digits or non-digit characters will cause a syntax error.

Otherwise, the content can be any number of digits that will be encoded without any checksum.

Any non-supported character will cause a syntax error.

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 may contain digits only. The maximum encodable length is 100 digits. If the number of digits is not even, a zero will be added in front of them.

 

Interface Command Sequence

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

MKI_ExtAddInt32, Type = 1006, ElemCount = 4

MKI_ExtAddText, Type = 1007, Static = false

MKI_ExtFastInsert

 

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

 

MKI_BLOCK_ENUM b1006( f_pExt ),

               b1007( f_pExt );

b1007.SetNext( b1006 );

 

__int32 nAlignMode = b1006.Int32(0);

__int32 nHeight    = b1006.Int32(1);

__int32 nMode      = b1006.Int32(2);

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH