Extended Object 150 "Bar Code Code39" (Entity Type "Extended Object") New in Version 2026.1

www.CAD6.com

 

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

 

This type of bar code is used for various purposes. It can represent letters 'A' to 'Z', digits, and some special characters.

 

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 1010( AlignMode, Height, Mode, Unused )

Data Block 1011( 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 encoded to maintain lower-case characters and accept additional characters ! \" #. This will increase the code length.

0x00000002

A checksum character shall be calculated and appended to the code.

Otherwise, the text may only consist of digits and characters 'A' to 'Z', plus special characters - . $ / + % and space. The maximum length is 200 characters.

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 = 1010, ElemCount = 4

MKI_ExtAddText, Type = 1011, Static = false

MKI_ExtFastInsert

 

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

 

MKI_BLOCK_ENUM b1010( f_pExt ),

               b1011( f_pExt );

b1011.SetNext( b1010 );

 

__int32 nAlignMode = b1010.Int32(0);

__int32 nHeight    = b1010.Int32(1);

__int32 nMode      = b1010.Int32(2);

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH