Archicad 28 C++ API
|
Functions defining the Add-On's behavior during its lifetime, including the initial registration by Archicad, loading into memory and unloading. More...
Classes | |
struct | API_AddOnInfo |
Textual description of the add-on. More... | |
struct | API_ServerApplicationInfo |
Describes the current server application the add-on is running under. More... | |
struct | API_EnvirParams |
Describes the different parameters of the running environment. More... | |
Typedefs | |
typedef void | APIDllTermHookProc(void) |
Handler procedure for abnormal termination. | |
Enumerations | |
enum | API_ApplicationTypeID { APIAppl_ArchiCADID = 1 } |
The ID of the server application the add-on is called from. More... | |
enum | API_AddonType { APIAddon_DontRegister = 0 , APIAddon_Normal = 1 , APIAddon_Preload = 2 , APIAddon_Unknown = 9999 } |
Describes the different types of add-ons. More... | |
Functions | |
API_AddonType | CheckEnvironment (API_EnvirParams *envirParams) |
Defines the behavior of the add-on based on the current running environment. | |
GSErrCode | RegisterInterface (void) |
In this function the add-on can register its services, and menu commands. | |
GSErrCode | Initialize (void) |
The main entry point of the add-on. | |
GSErrCode | FreeData (void) |
void | ACAPI_SetDllTermHookProc (APIDllTermHookProc *dllTermHookProc) |
Sets a handler procedure for the case of abnormal termination. | |
void | ACAPI_KeepInMemory (bool keepIn) |
Instructs the host application to keep the add-on in the memory after execution. | |
Functions defining the Add-On's behavior during its lifetime, including the initial registration by Archicad, loading into memory and unloading.
typedef void APIDllTermHookProc(void) |
Handler procedure for abnormal termination.
enum API_AddonType |
Describes the different types of add-ons.
The ID of the server application the add-on is called from.
ACAPI_GetReleaseNumber
functions to get this data. void ACAPI_KeepInMemory | ( | bool | keepIn | ) |
Instructs the host application to keep the add-on in the memory after execution.
keepIn | [in] If true the add-on will stay in the memory. |
void ACAPI_SetDllTermHookProc | ( | APIDllTermHookProc * | dllTermHookProc | ) |
Sets a handler procedure for the case of abnormal termination.
dllTermHookProc | [in] Handler function pointer |
API_AddonType CheckEnvironment | ( | API_EnvirParams * | envirParams | ) |
Defines the behavior of the add-on based on the current running environment.
envirParams | [in/out] Contains information on the environment. The add-on should also return a textual description of its purpose. |
GSErrCode FreeData | ( | void | ) |
The termination point of the addon.
GSErrCode Initialize | ( | void | ) |
The main entry point of the add-on.
GSErrCode RegisterInterface | ( | void | ) |
In this function the add-on can register its services, and menu commands.