Extended Object 48 "Block Pattern Filling" (Entity Type "Extended Object")

www.CAD6.com

 

The extended object "Block Pattern Filling" 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 Sequence

Data Block 1000( Matrix )

Data Block 1001( Frame )

Data Block 1010( LibraryName )

Data Block 1011( BlockName )

Data Block 1012( OriginX, OriginY, BlockRotate, BlockScale, XStep1, XStep2, YStep1, YStep2, LineStep1, LineStep2, Rotate, Unused1, Unused2 )

 

These data blocks are followed by a sequence of data blocks identical to those stored in an object of type "Surface", see Object 13 "Surface".

 

Parameters

Matrix

[MKI_MATRIX] A matrix that will be applied to the outline data.

Frame

[MKI_RECT] Surrounding frame of the area to be filled in internal millimeters.

LibraryName

[MKI_LIBRARYNAME] Name of the library.

BlockName

[MKI_BLOCKNAME] Name of the block.

OriginX

OriginY

[double] Coordinates of the zero position for the pattern grid.

BlockRotate

[double] Rotation of the block in [rad].

BlockScale

[double] Scaling of the block.

XStep1

[double] Horizontal feed per block in multiples of the block's width.

XStep2

[double] Additional horizontal feed per block in millimeters.

YStep1

[double] Vertical feed per block in multiples of the block's height.

YStep2

[double] Additional vertical feed per block in millimeters.

LineStep1

[double] Horizontal offset between adjacent lines in multiples of the block's width.

LineStep2

[double] Additional horizontal offset between adjacent lines in millimeters.

Rotate

[double] Overall rotation of the whole pattern in [rad]

Unused1

[double] Unused, set to 0.0.

Unused2

[double] Unused, set to 0.0.

 

Interface Command Sequence

MKI_ExtOpen, OwnerID = MKI_DB_OWNER_MK, Type = MKI_OBJ_EXT_FILL_BLOCK, Flag = MKI_EXTFLAG_SURFACE

MKI_ExtAddDouble, Type = 1000, ElemCount = 6

MKI_ExtAddDouble, Type = 1001, ElemCount = 4

MKI_ExtAddText, Type = 1010, Size = 64, Static = true

MKI_ExtAddText, Type = 1011, Size = 256, Static = true

MKI_ExtAddDouble, Type = 1012, ElemCount = 13

 

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

 

MKI_BLOCK_ENUM b1000( f_pExt ),

               b1001( f_pExt ),

               b1010( f_pExt ),

               b1011( f_pExt ),

               b1012( f_pExt );

b1001.SetNext( b1000 );

b1010.SetNext( b1001 );

b1011.SetNext( b1010 );

b1012.SetNext( b1011 );

 

MKI_MATRIX cMatrix;

cMatrix.m11 = b1000.Double(0);

cMatrix.m12 = b1000.Double(1);

cMatrix.m21 = b1000.Double(2);

cMatrix.m22 = b1000.Double(3);

cMatrix.m31 = b1000.Double(4);

cMatrix.m32 = b1000.Double(5);

 

...

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH