|
Extended Object 147 "Bar Code Code128" (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 GS1-128 and other purposes. It can represent digits and ASCII characters from 32 to 127.
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 SequenceData Block 1004( AlignMode, Height, Mode, Unused ) Data Block 1005( Text )
ParametersAlignMode [__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 human-readable GS1-128 data (with AIs in parentheses). Unknown AIs or invalid data format will cause a syntax error. The content may be ASCII 32 to 126 (not 127!). Otherwise, the content can be arbitrary data (ASCII 32 to 127) with optional '¶' characters (Ansi 182) that will be encoded as FNC1. 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 will be converted to ASCII before encoding. The maximum encodable length is 500 digits or 250 characters (ASCII 32 to 127).
Interface Command SequenceMKI_ExtOpen, OwnerID = MKI_DB_OWNER_MK, Type = MKI_OBJ_EXT_CODE_C128, Flag = MKI_EXTFLAG_TEXT MKI_ExtAddInt32, Type = 1004, ElemCount = 4 MKI_ExtAddText, Type = 1005, Static = false
Use code like the following to parse the data blocks of this entity in memory:
MKI_BLOCK_ENUM b1004( f_pExt ), b1005( f_pExt ); b1005.SetNext( b1004 );
__int32 nAlignMode = b1004.Int32(0); __int32 nHeight = b1004.Int32(1); __int32 nMode = b1004.Int32(2);
|
CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH