MKI_DrawingOpenFile (Drawing) Changed in Version 2019.0

www.CAD6.com

C++ Syntax

bool

MKI_DrawingOpenFile(

 const LPCWSTR f_pszFileName,

 __int32 f_nOpenFlags,

 bool f_fSetName,

 bool f_fMerge,

 bool f_fPrompt,

 bool f_fAddToRecent );

 

Loads a drawing file from disk.

 

Parameters

f_pszFileName

[const LPCWSTR] File name of the drawing file to be loaded.

f_nOpenFlags

[__int32] Bit-wise OR combination of flags that determine which sections of the drawing are to be loaded, see MKI_FILEMODE_*. Normally, this flag should be set to either MKI_FILEMODE_ALL (load everything) or MKI_FILEMODE_USERSECTIONS (use the current default settings).

f_fSetName

[bool] If true, the name of the currently active drawing is changed to the specified file name. Otherwise the name remains unchanged.

f_fMerge

[bool] If true, the currently active drawing will be merged with the specified drawing file. Otherwise a new drawing is created by loading the default drawing template before the specified drawing file is loaded (refer to MKI_DrawingNewFile).

f_fPrompt

[bool] If true, the function checks whether the drawing to be replaced has changed since last saving. If so, a dialog appears allowing the user to save the "old" drawing first.

f_fAddToRecent New in Version 2026.0

[bool] If true, the drawing's file name will be added to the recently used file names list. Will be ignored if f_fSetName is false.

 

Return Value

Returns true if successful. If false is returned, the drawing file could not be loaded successfully, either because it did not exist, or it was faulty, or the user did not allow the "old" drawing to be replaced (with or without saving).

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH