Functions related to the Process Control (Process Window).
More...
Functions related to the Process Control (Process Window).
◆ API_ProcessControlTypeID
◆ ACAPI_ProcessWindow_CloseProcessWindow()
GSErrCode ACAPI_ProcessWindow_CloseProcessWindow |
( |
| ) |
|
Closes the process window.
- Returns
- NoError - The function always returns NoError.
- Example
GSErrCode err;
GS::UniString title ("Listing the library");
GS::UniString subtitle ("working...");
Int32 nPhase;
Int32 i, nLib;
char buffer [256];
if (nLib > 0) {
nPhase = 1;
for (i = 1; i <= nLib; i++) {
if (!err) {
sprintf (buffer,
"[%2d] \"%s\"", i, (
const char *) GS::UniString (libPart.
docu_UName).ToCStr ());
}
break;
}
}
◆ ACAPI_ProcessWindow_GetProcessControl()
GSErrCode ACAPI_ProcessWindow_GetProcessControl |
( |
GS::ProcessControl ** | processControl | ) |
|
Returns the actual process control from Archicad.
- Parameters
-
- Returns
- NoError - The function has completed with success.
◆ ACAPI_ProcessWindow_GetProcessOnOffSwitch()
GSErrCode ACAPI_ProcessWindow_GetProcessOnOffSwitch |
( |
bool * | param | ) |
|
Returns whether the process window will appear.
- Parameters
-
param | [out] returns the current state. |
- Returns
- NoError - The function has completed with success.
◆ ACAPI_ProcessWindow_IncProcessValue()
GSErrCode ACAPI_ProcessWindow_IncProcessValue |
( |
Int32 * | incval = nullptr | ) |
|
Increases the value of the progress bar.
- Parameters
-
incval | [in] The value to add to the progress bar in the current process phase. |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - incval is nullptr
◆ ACAPI_ProcessWindow_InitProcessWindow()
GSErrCode ACAPI_ProcessWindow_InitProcessWindow |
( |
const GS::UniString * | title = nullptr, |
|
|
Int32 * | nPhase = nullptr, |
|
|
API_ProcessControlTypeID * | processCntrolType = nullptr ) |
Opens the process window.
- Parameters
-
title | [in] Process string. |
nPhase | [in] Number of phases. |
processCntrolType | [in] |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - nPhase is nullptr
- Example
GSErrCode err;
GS::UniString title ("Listing the library");
GS::UniString subtitle ("working...");
Int32 nPhase;
Int32 i, nLib;
char buffer [256];
if (nLib > 0) {
nPhase = 1;
for (i = 1; i <= nLib; i++) {
if (!err) {
sprintf (buffer,
"[%2d] \"%s\"", i, (
const char *) GS::UniString (libPart.
docu_UName).ToCStr ());
}
break;
}
}
◆ ACAPI_ProcessWindow_IsProcessCanceled()
GSErrCode ACAPI_ProcessWindow_IsProcessCanceled |
( |
| ) |
|
Checks for user breaks during long processes.
- Returns
- NoError - The function has completed with success.
- APIERR_CANCEL - The current process was canceled
- Example
GSErrCode err;
GS::UniString title ("Listing the library");
GS::UniString subtitle ("working...");
Int32 nPhase;
Int32 i, nLib;
char buffer [256];
if (nLib > 0) {
nPhase = 1;
for (i = 1; i <= nLib; i++) {
if (!err) {
sprintf (buffer,
"[%2d] \"%s\"", i, (
const char *) GS::UniString (libPart.
docu_UName).ToCStr ());
}
break;
}
}
◆ ACAPI_ProcessWindow_SetInnerProcessControl()
GSErrCode ACAPI_ProcessWindow_SetInnerProcessControl |
( |
GS::ProcessControl * | processControl = nullptr | ) |
|
Sets the given process control to Archicad.
- Parameters
-
processControl | [in] Can be nullptr. |
- Returns
- NoError - The function has completed with success.
◆ ACAPI_ProcessWindow_SetNextProcessPhase()
GSErrCode ACAPI_ProcessWindow_SetNextProcessPhase |
( |
const GS::UniString * | subtitle, |
|
|
Int32 * | maxval, |
|
|
bool * | showPercent = nullptr ) |
Starts the next process phase in the process window.
- Parameters
-
subtitle | [in] Description of the process phase. |
maxval | [in] Maximum value of the progress bar. |
showPercent | [in] Show phase percentage. (optional) |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - maxval is nullptr
- Example
GSErrCode err;
GS::UniString title ("Listing the library");
GS::UniString subtitle ("working...");
Int32 nPhase;
Int32 i, nLib;
char buffer [256];
if (nLib > 0) {
nPhase = 1;
for (i = 1; i <= nLib; i++) {
if (!err) {
sprintf (buffer,
"[%2d] \"%s\"", i, (
const char *) GS::UniString (libPart.
docu_UName).ToCStr ());
}
break;
}
}
◆ ACAPI_ProcessWindow_SetProcessOnOffSwitch()
GSErrCode ACAPI_ProcessWindow_SetProcessOnOffSwitch |
( |
bool * | switchOff | ) |
|
Turns the process window on/off.
- Parameters
-
switchOff | [in] sets the current state. |
- Returns
- NoError - The function has completed with success.
◆ ACAPI_ProcessWindow_SetProcessValue()
GSErrCode ACAPI_ProcessWindow_SetProcessValue |
( |
Int32 * | newval | ) |
|
Sets the value of the progress bar.
- Parameters
-
newval | [in] The new value of the progress bar in the current process phase. |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - newval is nullptr
- Example
GSErrCode err;
GS::UniString title ("Listing the library");
GS::UniString subtitle ("working...");
Int32 nPhase;
Int32 i, nLib;
char buffer [256];
if (nLib > 0) {
nPhase = 1;
for (i = 1; i <= nLib; i++) {
if (!err) {
sprintf (buffer,
"[%2d] \"%s\"", i, (
const char *) GS::UniString (libPart.
docu_UName).ToCStr ());
}
break;
}
}