MKI_CREATEBLOCK_DATA (Basic Classes) Changed in Version 2024.0

www.CAD6.com

C++ Syntax

class MKI_CREATEBLOCK_DATA

{

  public:

 

  MKI_LIBRARYNAME m_szLibraryName;

  MKI_BLOCKNAME m_szBlockName;

  MKI_COMMENTLONG m_szComment;

  __int32 m_nMode;

 

  MKI_CREATEBLOCK_DATA( void );

 

  void

  Init( void );

 

  void

  InitAnonymous( void );

};

 

This structure contains input/output data for the "create block" dialog (see MKI_DialogCreateBlock).

 

Element Description

LibraryName Changed in Version 2019.1

[MKI_LIBRARYNAME] Name of the currently selected library.

BlockName Changed in Version 2019.1

[MKI_BLOCKNAME] Name of the currently selected block.

Comment Changed in Version 2019.1

[MKI_COMMENTLONG] Comment on the block.

Mode Changed in Version 2024.0

[__int32] Bit-wise OR combination of some flags indicating various modes. Possible values are:

 

MODE_SHOW_ATTRIBUTES

Corresponds to the "Show attributes" check box of the dialog.

 

MODE_SHOW_PREVIEW

Corresponds to the "Display preview" check box of the dialog.

 

MODE_SHOW_NOVARIABLES

Corresponds to the "Do not resolve" (variables, attributes, and text statements) check box of the dialog.

 

MODE_REPLACE_OBJECTS

Corresponds to the "Replace objects by instance" check box of the dialog.

 

MODE_STANDARD_ATTRIBUTES

Corresponds to the "Retain standard attributes" check box of the dialog.

 

MODE_EDIT_ATTRIBUTES

Corresponds to the "Edit attributes" check box of the dialog.

 

MODE_KEEP_ATTRIBUTES

Corresponds to the "Keep attributes when replacing" check box of the dialog.

 

MODE_RESOLVE_PROPERTIES

Corresponds to the "Resolve properties" check box of the dialog.

 

MODE_FIX_PROPERTIES

Corresponds to the "Fix properties" check box of the dialog.

 

MODE_EDIT_PROPERTIES

Corresponds to the "Edit properties" check box of the dialog.

 

MODE_EDIT_BLOCK_ONLY

Corresponds to the "Block properties only" check box of the dialog.

 

Comment

When calling MKI_DialogCreateBlock(), use the following flags defined in this class to enable the individual controls:

 

DIALOGMODE_REPLACE

If this flag is set, the control corresponding to the ReplaceObjects element will be visible and enabled.

 

DIALOGMODE_STANDARDATTRIB

If this flag is set, the control corresponding to the StandardAttributes element will be visible and enabled.

 

DIALOGMODE_EDITATTRIB

If this flag is set, the control corresponding to the EditAttributes element will be visible and enabled.

 

DIALOGMODE_RESOLVEPROP

If this flag is set, the control corresponding to the ResolveProperties element will be visible and enabled.

 

DIALOGMODE_EDITPROP

If this flag is set, the control corresponding to the EditProperties element will be visible and enabled.

 

DIALOGMODE_COMMENT New in Version 2013.0

If this flag is set, the control corresponding to the Comment element will be visible and enabled.

 

DIALOGMODE_FIXPROP New in Version 2016.0

If this flag is set, the control corresponding to the FixProperties element will be visible and enabled.

 

DIALOGMODE_EDITBLOCKONLY New in Version 2016.0

If this flag is set, the control corresponding to the EditBlockOnly element will be visible and enabled.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH