|
MKI_DrawingInit (Drawing) New in Version 2025.1 |
www.CAD6.com |
C++ Syntaxbool MKI_DrawingInit( __int32 f_nPageType, bool f_fLandscape, bool f_fPrompt );
Clears the drawing by removing all data, no drawing template will be loaded. The new drawing is untitled.
Parametersf_nPageType [__int32] Standard page size to be set (see MKI_PAGETYPE_*). Use MKI_PAGETYPE_CUSTOM to switch to the default page size based on the current default measuring type. This is either a DIN A3 landscape page or a 11×17 inch landscape page. f_fLandscape [bool] If true, the page will be in landscape orientation. If false, it will be in portrait orientation. Unused if f_nPageType is MKI_PAGETYPE_CUSTOM. f_fPrompt [bool] If this value is true, the function checks whether the current drawing to be removed from memory has changed since last saving. If so, a dialog appears allowing the user to save the "old" drawing first.
Return ValueReturns true if successful. If false is returned, the "old" drawing was changed and the user did not allow it to be removed (with or without saving).
|
CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH