|
Extended Object 98 "Tolerance Datum ISO 1101" (Entity Type "Extended Object") |
www.CAD6.com |
|
The extended object "Tolerance Datum ISO 1101" is defined by CAD6studio and CAD6industrie.
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 1010( Font ) Data Block 1011( TextSize, LineWidth ) Data Block 1045( TextA ) Data Block 1003( RefMode [, RefType] ) Data Block 1004( RefData )
ParametersFont [MKI_FONTDEF] Description of the font to be used for this text. TextSize [double] Size of the font. This size is handled differently depending of the font's type. If the font is a TrueType or device font, this value determines the typographical font size, i.e. the minimum offset between two lines of texts. If the font is internal, this value determines the actual character height. Usually, an internal font will be displayed about 25% larger with the same value of TextSize. LineWidth [double] Width of the object's outline in [mm] between 0.0 and MKI_LINEWIDTH_MAX (including). A width of 0.0 always results in a line of the minimum width possible on the respective device (one pixel). Any negative value is interpreted as "by layer", i.e. the line width will be defined by the corresponding layer (use MKI_LINEWIDTH_BYLAYER). TextA [MKI_STRSHORTW] Text for location "A" (see image above). Its length may be up to MKI_LENGTH_TEXT_SHORT characters including the terminating zero character (0x00). See also Advanced Text Capabilities. RefMode [__int32] Reference mode. Possible values are:
RefType [__int32] Type of the reference object. Only present if RefMode is 2. Possible values are: MKI_OBJ_LINE Doubles 0 and 1: Position, doubles 2 and 3: Start point, doubles 4 and 5: End point, required length is 6 doubles. MKI_OBJ_CIRCLE Doubles 0 and 1: Position, doubles 2 and 3: Center point, doubles 4 and 5: Radius point, required length is 6 doubles. MKI_OBJ_ELLIPSE Doubles 0 and 1: Position, doubles 2 and 3: Center point, doubles 4 and 5: Vector point 1, doubles 6 and 7: Vector point 2, required length is 6 doubles. MKI_OBJ_CURVE Doubles 0 and 1: Position, doubles 2 and 3: Start point, doubles 4 and 5: End point, doubles 8 and 9: Pivot point 1, doubles 10 and 11: Pivot point 2, required length is 12 doubles. RefData [double[]] Position and possible reference data. The number of required doubles depends on RefMode and RefType. Minimum is 2, maximum is 12.
Interface Command SequenceMKI_ExtOpen, OwnerID = MKI_DB_OWNER_MK, Type = MKI_OBJ_EXT_LABEL_ISO1101B, Flag = MKI_EXTFLAG_DIM | MKI_EXTFLAG_TEXT | MKI_EXTFLAG_MULTITEXT MKI_ExtAddFontDef, Type = 1010 MKI_ExtAddDouble, Type = 1011, ElemCount = 2 MKI_ExtAddText, Type = 1045, Size = MKI_LENGTH_TEXT_SHORT, Static = true MKI_ExtAddInt32, Type = 1003, ElemCount = 2 MKI_ExtAddDouble, Type = 1004, ElemCount = 2 .. 12
Use code like the following to parse the data blocks of this entity in memory:
MKI_BLOCK_ENUM b1010( f_pExt ), b1011( f_pExt ), b1045( f_pExt ), b1003( f_pExt ), b1004( f_pExt ); b1011.SetNext( b1010 ); b1045.SetNext( b1011 ); b1003.SetNext( b1045 ); b1004.SetNext( b1003 );
MKI_FONTDEF cFont = b1010.FontDef(0);
...
|
CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH