Extended Object 146 "Bar Code GTIN-8" (Entity Type "Extended Object") New in Version 2026.1

www.CAD6.com

 

The extended object "Bar Code GTIN-8" is defined by CAD6studio and CAD6industrie.

 

This type of bar code is used for EAN-8 and other purposes. It can represent up to 8 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 1002( AlignMode, Height, Overhang, Unused )

Data Block 1003( 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.

Overhang

[__int32] Additional length of the start, center, and end codes in units. Valid range: 0 ≤ x ≤ 100.

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 8 digits. If the number of digits is less than 8, zeros will be added in front of them.

Any non-supported character will cause a syntax error.

 

Interface Command Sequence

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

MKI_ExtAddInt32, Type = 1002, ElemCount = 4

MKI_ExtAddText, Type = 1003, Static = false

MKI_ExtFastInsert

 

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

 

MKI_BLOCK_ENUM b1002( f_pExt ),

               b1003( f_pExt );

b1003.SetNext( b1002 );

 

__int32 nAlignMode = b1002.Int32(0);

__int32 nHeight    = b1002.Int32(1);

__int32 nOverhang  = b1002.Int32(2);

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH