MKI_LINEBLOCKDEF (Entity Data Classes) Changed in Version 2023.2

www.CAD6.com

C++ Syntax

class MKI_LINEBLOCKDEF

{

  public:

 

  __int32 m_nBlockCount,

          m_nBlockMode;

  MKI_LINEBLOCKENTRY m_acBlockList[MKI_LINEBLOCKPART_MAX];

 

  void

  Init( void );

 

  bool

  IsIdentical( const MKI_LINEBLOCKDEF& f_rData ) const; New in Version 2023.2

};

 

This structure contains a block line type definition that can be referenced by a line type definition.

 

Element Description

m_nBlockCount

[__int32] Number of segments used. Valid range: 0 <= Value <= MKI_LINEBLOCKPART_MAX. If this value is 0, no block will be drawn on the line.

m_nBlockMode

[__int32] Definition mode of the line type (see MKI_LINETYPE_*). Supported values are:

MKI_LINETYPE_STANDARD

MKI_LINETYPE_ABSOLUTE

MKI_LINETYPE_ROTATED

MKI_LINETYPE_SCALED

MKI_LINETYPE_FLAG_COLOR Renamed in Version 2021.2

MKI_LINETYPE_FLAG_WIDTH New in Version 2021.2

m_acBlockList Changed in Version 2013.0

[MKI_LINEBLOCKENTRY[]] List of segments (can a gap or a block instance).

 

MKD Syntax

A "block based" line type defines a sequence of blocks creating a periodical line type. Each block has a determined length along the line it is centered to.

 

Such a block based line type only occurs inside a standard line type definition.

 

Entry for a Block line type Definition

BlockNum,BlockMode,

BlockList[0],BlockList[1],BlockList[2], ...

 

Example of a Block line type Definition

|Num,Mode|

1,24,

|Length,LibraryName,BlockName|

10000,"Pattern","Type17"

 

This is the definition of a block based line type consisting of a single block "Type17" from library "Pattern" that is periodically repeated with a distance of 100 times the line’s width. The block is rotated according to the line’s orientation and is scaled relative to a line width of 1 mm.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH