Archicad 28 C++ API
|
Functions related to the Process Control (Process Window). More...
Enumerations | |
enum | API_ProcessControlTypeID { API_MenuCommandEnabled , API_MenuCommandDisabled } |
Process control types. More... | |
Functions | |
GSErrCode | ACAPI_ProcessWindow_GetProcessControl (GS::ProcessControl **processControl) |
Returns the actual process control from Archicad. | |
GSErrCode | ACAPI_ProcessWindow_SetInnerProcessControl (GS::ProcessControl *processControl=nullptr) |
Sets the given process control to Archicad. | |
GSErrCode | ACAPI_ProcessWindow_InitProcessWindow (const GS::UniString *title=nullptr, Int32 *nPhase=nullptr, API_ProcessControlTypeID *processCntrolType=nullptr) |
Opens the process window. | |
GSErrCode | ACAPI_ProcessWindow_CloseProcessWindow () |
Closes the process window. | |
GSErrCode | ACAPI_ProcessWindow_SetNextProcessPhase (const GS::UniString *subtitle, Int32 *maxval, bool *showPercent=nullptr) |
Starts the next process phase in the process window. | |
GSErrCode | ACAPI_ProcessWindow_SetProcessValue (Int32 *newval) |
Sets the value of the progress bar. | |
GSErrCode | ACAPI_ProcessWindow_IncProcessValue (Int32 *incval=nullptr) |
Increases the value of the progress bar. | |
GSErrCode | ACAPI_ProcessWindow_IsProcessCanceled () |
Checks for user breaks during long processes. | |
GSErrCode | ACAPI_ProcessWindow_SetProcessOnOffSwitch (bool *switchOff) |
Turns the process window on/off. | |
GSErrCode | ACAPI_ProcessWindow_GetProcessOnOffSwitch (bool *param) |
Returns whether the process window will appear. | |
Functions related to the Process Control (Process Window).
Process control types.
GSErrCode ACAPI_ProcessWindow_CloseProcessWindow | ( | ) |
Closes the process window.
GSErrCode ACAPI_ProcessWindow_GetProcessControl | ( | GS::ProcessControl ** | processControl | ) |
Returns the actual process control from Archicad.
processControl | [out] |
GSErrCode ACAPI_ProcessWindow_GetProcessOnOffSwitch | ( | bool * | param | ) |
Returns whether the process window will appear.
param | [out] returns the current state. |
GSErrCode ACAPI_ProcessWindow_IncProcessValue | ( | Int32 * | incval = nullptr | ) |
Increases the value of the progress bar.
incval | [in] The value to add to the progress bar in the current process phase. |
GSErrCode ACAPI_ProcessWindow_InitProcessWindow | ( | const GS::UniString * | title = nullptr , |
Int32 * | nPhase = nullptr , |
||
API_ProcessControlTypeID * | processCntrolType = nullptr |
||
) |
Opens the process window.
title | [in] Process string. |
nPhase | [in] Number of phases. |
processCntrolType | [in] |
GSErrCode ACAPI_ProcessWindow_IsProcessCanceled | ( | ) |
Checks for user breaks during long processes.
GSErrCode ACAPI_ProcessWindow_SetInnerProcessControl | ( | GS::ProcessControl * | processControl = nullptr | ) |
Sets the given process control to Archicad.
processControl | [in] Can be nullptr. |
GSErrCode ACAPI_ProcessWindow_SetNextProcessPhase | ( | const GS::UniString * | subtitle, |
Int32 * | maxval, | ||
bool * | showPercent = nullptr |
||
) |
Starts the next process phase in the process window.
subtitle | [in] Description of the process phase. |
maxval | [in] Maximum value of the progress bar. |
showPercent | [in] Show phase percentage. (optional) |
GSErrCode ACAPI_ProcessWindow_SetProcessOnOffSwitch | ( | bool * | switchOff | ) |
Turns the process window on/off.
switchOff | [in] sets the current state. |
GSErrCode ACAPI_ProcessWindow_SetProcessValue | ( | Int32 * | newval | ) |
Sets the value of the progress bar.
newval | [in] The new value of the progress bar in the current process phase. |