Actuates the server application as an automation server.
GSErrCode ACAPI_Automate ( API_AutomateID code, void* par1 = nullptr, void* par2 = nullptr, void* par3 = nullptr );
Parameters
- code
- [in] Automation function identifier.
- par1
- [in/out] The content of
par1
depends on thecode
parameter. - par2
- [in/out] The content of
par2
depends on thecode
parameter. - par3
- [in/out] The content of
par2
depends on thecode
parameter.
Return Values
NoError
- The automation function completed with success.
APIERR_BADID
- Invalid
code
parameter was passed. APIERR_REFUSEDCMD
- The requested function is not available.
More return values can be found at the description of each automation functions.
Remarks
This function group is used to actuate the host application from an API tool add-on.
The type of the automation function is specified by the code
parameter.
Description
File Operations
Opens a new plan.
Opens an existing project file.
Closes the current window.
Saves the content of the current window in different file formats.
Saves the selected elements into a module file.
Resets and loads the active libraries.
Reloads the active libraries.
Prints the content of the current window.
Terminates the server application.
Display and View
Redraws the content of the current window.
Rebuilds the content of the current window.
Performs a zoom operation.
Zooms to the selected elements.
Zooms to the given set of elements.
Changes the front window.
Switches to the given navigator view.
Creates a photorealistic image of the 3D window.
Show Selection/Marquee in 3D.
Show All in 3D.
Hierarchical elements (curtain wall, stair, railing) related functions
Change to Hierarchical Elem (Curtain Wall, Stair, Railing, Beam, Column) Editing mode.
Cancel changes in Hierarchical Elem (Curtain Wall, Stair, Railing, Beam, Column) editing mode.
Accept changes in Hierarchical Elem (Curtain Wall, Stair, Railing, Beam, Column) editing mode.
Requirements
- Version: API 2.1 or later
- Header: ACAPinc.h