|
Archicad 29 C++ API
|
Functions related to the Project Windows, such as creating, opening, switching and closing windows. More...
Classes | |
| struct | API_WindowInfo |
| Identification parameters of a project window. More... | |
| struct | API_NewWindowPars |
| Parameters to open a new window. More... | |
Typedefs | |
| typedef GSErrCode | APICustomWindowHandlerProc(const API_Guid &userRefId, API_NotifyWindowEventID notifID) |
| User supplied callback function for handling events in windows opened by the add-on. | |
Enumerations | |
| enum | API_WindowTypeID { API_ZombieWindowID , APIWind_FloorPlanID , APIWind_SectionID , APIWind_DetailID , APIWind_3DModelID , APIWind_LayoutID , APIWind_DrawingID , APIWind_MyTextID , APIWind_MyDrawID , APIWind_MasterLayoutID , APIWind_ElevationID , APIWind_InteriorElevationID , APIWind_WorksheetID , APIWind_ReportID , APIWind_DocumentFrom3DID , APIWind_External3DID , APIWind_Movie3DID , APIWind_MovieRenderingID , APIWind_RenderingID , APIWind_ModelCompareID , APIWind_IESCommonDrawingID = 0x00001000 , APIWind_AllModel2DID , APIWind_AllModelID , APIWind_AllIFCID , APIWind_AllWithoutMovieRenderingID , APIWind_AllID } |
| Possible values of a window/database identifier. More... | |
Functions | |
| GSErrCode | ACAPI_Window_ChangeWindow (const API_WindowInfo *windowInfo) |
| Changes the current (active) window. | |
| GSErrCode | ACAPI_Window_GetCurrentWindow (API_WindowInfo *windowInfo) |
| Returns the identifier of the current (active) window. | |
| GSErrCode | ACAPI_Window_ResetCurrentWindow () |
| Deletes the database elements of the current window and sets up a new, empty environment. | |
| GSErrCode | ACAPI_Window_NewWindow (API_NewWindowPars *newWindowPars, APICustomWindowHandlerProc *handlerProc=nullptr) |
| Opens a new window. | |
| GSErrCode | ACAPI_Window_CloseWindow (API_WindowInfo *windowInfo) |
| Closes a window. | |
| GSErrCode | ACAPI_Window_GetOwnWindows (API_WindowTypeID *windowTypeID, GS::Array< API_Guid > *guid=nullptr) |
| Returns the ids of the opened windows in an array. | |
| GSErrCode | ACAPI_Window_GetGridSettings (API_GridType *gridPars) |
| Returns the grid setting parameters of the current database. | |
| GSErrCode | ACAPI_Window_ChangeGridSettings (API_GridType *gridPars) |
| Changes the grid setting parameters of the current database. | |
| GSErrCode | ACAPI_Window_SetWindowId (const API_Guid *pOldGuid, const API_Guid *pNewGuid) |
| Changes the guid of a previously registered window. Useful when replacing already opened windows by reusing their window object. | |
| GSErrCode | ACAPI_Window_Check (API_ActionCenterItemID item) |
| Runs the selected checks of the Action Center. | |
Functions related to the Project Windows, such as creating, opening, switching and closing windows.
| typedef GSErrCode APICustomWindowHandlerProc(const API_Guid &userRefId, API_NotifyWindowEventID notifID) |
User supplied callback function for handling events in windows opened by the add-on.
| userRefId | [in] The reference GUID of the custom window, as supplied to ACAPI_Window_NewWindow. |
| notifID | [in] The type of the event for the custom window. |
| Event type | Description |
|---|---|
| APINotifyWindow_Rebuild | The user chose Rebuild from the menu. |
| APINotifyWindow_Activate | Your window was activated. |
| APINotifyWindow_Close | The user closed your window. |
| enum API_WindowTypeID |
Possible values of a window/database identifier.
| Enumerator | |
|---|---|
| API_ZombieWindowID | Unknown window/database type |
| APIWind_FloorPlanID | Floor plan window type |
| APIWind_SectionID | Section/elevation window type |
| APIWind_DetailID | Detail window type |
| APIWind_3DModelID | 3D model window type |
| APIWind_LayoutID | Layout window type |
| APIWind_DrawingID | Drawing window type |
| APIWind_MyTextID | Custom text window type |
| APIWind_MyDrawID | Custom draw window type |
| APIWind_MasterLayoutID | Master layout window type |
| APIWind_ElevationID | Elevation window type |
| APIWind_InteriorElevationID | Interior elevation window type |
| APIWind_WorksheetID | Worksheet window type |
| APIWind_ReportID | Report window type (used only in API_PublishFormatData) |
| APIWind_DocumentFrom3DID | 3D Document window type |
| APIWind_External3DID | External 3D window type (used only in API_PublishFormatData) |
| APIWind_Movie3DID | Movie 3D window type (used only in API_PublishFormatData) |
| APIWind_MovieRenderingID | Movie rendering window type (used only in API_PublishFormatData) |
| APIWind_RenderingID | Rendering window type (used only in API_PublishFormatData) |
| APIWind_ModelCompareID | Model compare window type |
| APIWind_IESCommonDrawingID | Interactive Schedule window type |
| APIWind_AllModel2DID | Used only in API_PublishFormatData |
| APIWind_AllModelID | Used only in API_PublishFormatData |
| APIWind_AllIFCID | Used only in API_PublishFormatData |
| APIWind_AllWithoutMovieRenderingID | Used only in API_PublishFormatData |
| APIWind_AllID | Used only in API_PublishFormatData |
| GSErrCode ACAPI_Window_ChangeGridSettings | ( | API_GridType * | gridPars | ) |
Changes the grid setting parameters of the current database.
| gridPars | [out] the grid parameters |
| GSErrCode ACAPI_Window_ChangeWindow | ( | const API_WindowInfo * | windowInfo | ) |
Changes the current (active) window.
| windowInfo | [in] The identification parameters of the requested front window |
| GSErrCode ACAPI_Window_Check | ( | API_ActionCenterItemID | item | ) |
Runs the selected checks of the Action Center.
| item | [in] The checks that Action Center will preform. |
| GSErrCode ACAPI_Window_CloseWindow | ( | API_WindowInfo * | windowInfo | ) |
Closes a window.
| windowInfo | parameters of the window to be closed (type and reference index) |
APIWind_MyTextID or APIWind_MyDrawID is requested.| GSErrCode ACAPI_Window_GetCurrentWindow | ( | API_WindowInfo * | windowInfo | ) |
Returns the identifier of the current (active) window.
| windowInfo | [out] The identification parameters of the front window |
| GSErrCode ACAPI_Window_GetGridSettings | ( | API_GridType * | gridPars | ) |
Returns the grid setting parameters of the current database.
| gridPars | [out] the grid parameters |
gridPars is nullptr | GSErrCode ACAPI_Window_GetOwnWindows | ( | API_WindowTypeID * | windowTypeID, |
| GS::Array< API_Guid > * | guid = nullptr ) |
Returns the ids of the opened windows in an array.
| windowTypeID | [in] TypeID of the opened windows. |
| guid | [out] An array of guids of the opened windows. |
| GSErrCode ACAPI_Window_NewWindow | ( | API_NewWindowPars * | newWindowPars, |
| APICustomWindowHandlerProc * | handlerProc = nullptr ) |
Opens a new window.
| newWindowPars | [in] parameters of the window to be created (type and reference index) |
| handlerProc | [in] Callback function to handle special (e.g. activate) events. Specify nullptr if you are not interested in these events. |
APIWind_MyTextID or APIWind_MyDrawID is requested.| GSErrCode ACAPI_Window_ResetCurrentWindow | ( | ) |
Deletes the database elements of the current window and sets up a new, empty environment.
Changes the guid of a previously registered window. Useful when replacing already opened windows by reusing their window object.
| pOldGuid | Guid of an existing window to be replaced with the new one. |
| pNewGuid | Guid of a non-existing window to replace the old one. |
APIWind_MyDrawID or APIWind_MyTextID.