MKI_DatabaseSort (Databases) Changed in Version 2019.0

www.CAD6.com

C++ Syntax

bool

MKI_DatabaseSort(

 __int32 f_nDatabaseIndex,

 __int32 f_nColumnIndex );

 

Sorts the given database by the given column. The sorting is done in alphabetical order based on Windows’ default ascending sorting order.

 

Parameters

DatabaseIndex

[__int32] Index of the database that shall be sorted. A value between MKI_BLOCK_INDEX and MKI_BLOCK_INDEX + MKI_DATABASE_INTERNAL_MAX - 1 indicates an internal database: MKI_BLOCK_INDEX refers to the drawing's default internal database (with empty name), MKI_BLOCK_INDEX + 1 through MKI_BLOCK_INDEX + MKI_DATABASE_INTERNAL_MAX - 1 refer to the other named internal database (with non-empty names). To access an external database, use value between 0 and MKI_DATABASE_MAX - 1.

ColumnIndex

[__int32] Index of the column by which the database shall be sorted.

 

Return Value

Returns true if successful, false if not (indicating that is was already sorted).

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH