Archicad 28 C++ API
|
Dialog and Palette managent, and Integration to existing dialogs. More...
Classes | |
struct | API_PolygonExt |
Representation of a 2D polygon and the 3D transformation plane. More... | |
class | API_AttributeIndex |
Index reference to an attribute. More... | |
struct | API_RGBColor |
RGB color reference. More... | |
struct | API_Polygon |
Representation of a two dimensional polygon. More... | |
struct | API_Plane3D |
Desribes a 3D plane. More... | |
struct | API_SunAngleSettings |
Sun angle settings. More... | |
struct | API_PerspPars |
Perspective projection parameters. More... | |
struct | API_StairType |
Represents a Stair element. More... | |
struct | API_PetPaletteType |
Parameters for performing user input with pet palette. More... | |
struct | API_UCCallbackType |
Describes the attribute set to be used in a user control dialog item. More... | |
struct | API_ObjectSettingsPars |
Defines the parameters of the Object Settings dialog. More... | |
class | API_AttributePickerParams |
Describes the type and the push check for creating an attribute picker in ACAPI_Dialog_CreateAttributePicker. More... | |
class | API_AttributePicker |
Describes an attribute picker created in ACAPI_Dialog_CreateAttributePicker, with getter and setter for the selected attribute and the hanlder of push check click event. More... | |
struct | API_AttributeFolderPickerParams |
Describes the type and the push check for creating an attribute folder picker in ACAPI_Attribute_CreateAttributeFolderPicker. More... | |
struct | API_AddParType |
Describes a parameter of a Library Part. More... | |
Typedefs | |
typedef GSErrCode | APIPetPaletteCallBackProc(short actValue) |
User supplied callback procedure during pet palette input. | |
Enumerations | |
enum | API_RenovationStatusType { API_UndefinedStatus = -1 , API_DefaultStatus = 0 , API_ExistingStatus = 1 , API_NewStatus = 2 , API_DemolishedStatus = 3 } |
Renovation status of the (primitive) element. | |
enum | API_ColorDepthID { APIColorDepth_FromSourceImage = -1 , APIColorDepth_BW = 0 , APIColorDepth_16C , APIColorDepth_256C , APIColorDepth_16G , APIColorDepth_256G } |
enum | API_BoundaryDisplay { APIBound_UncutContours = 1 , APIBound_NoContours = 2 , APIBound_OverrideContours = 3 } |
Boundary display options. | |
enum | API_CutPlanePlanConn { APICutPl_Online = 0 , APICutPl_Offline = 1 , APICutPl_Drawing = 2 } |
Define the status of the link between the Section/Elevation and the Floor Plan. More... | |
enum | API_SunAngleSettings_SunPositionOption { API_SunPosition_GivenByAngles = 0 , API_SunPosition_GivenByDate = 1 } |
Sun position options for calculating Sun's angles. More... | |
enum | API_UserControlType { APIUserControlType_Pen , APIUserControlType_PenWithNull , APIUserControlType_PolyFill , APIUserControlType_WallFill , APIUserControlType_WallCompFill , APIUserControlType_AllFill , APIUserControlType_AllFillGradNoComp , APIUserControlType_WallSetsFill , APIUserControlType_WallComposites , APIUserControlType_SlabSetsFill , APIUserControlType_SlabComposites , APIUserControlType_RoofSetsFill , APIUserControlType_RoofComposites , APIUserControlType_ShellSetsFill , APIUserControlType_ShellComposites , APIUserControlType_OnlyCompFill , APIUserControlType_Material , APIUserControlType_MaterialWithGeneral , APIUserControlType_Layer , APIUserControlType_ZoneCategory , APIUserControlType_DashedLine , APIUserControlType_SymbolLine , APIUserControlType_CoverFill , APIUserControlType_WallProfile , APIUserControlType_BeamProfile , APIUserControlType_ColumnProfile , APIUserControlType_AllProfile , APIUserControlType_PolyFillWithGradient , APIUserControlType_BuildingMaterial , APIUserControlType_HandrailProfile , APIUserControlType_OtherGDLObjectProfile , APIUserControlType_BeamAndColumnProfile } |
Describes the different types of user controls. More... | |
enum | API_AddParID : Int32 { API_ZombieParT = 0 , APIParT_Integer , APIParT_Length , APIParT_Angle , APIParT_RealNum , APIParT_LightSw , APIParT_ColRGB , APIParT_Intens , APIParT_LineTyp , APIParT_Mater , APIParT_FillPat , APIParT_PenCol , APIParT_CString , APIParT_Boolean , APIParT_Separator , APIParT_Title , APIParT_BuildingMaterial , APIParT_Profile , APIParT_Dictionary } |
Possible types of a Library Part additive parameter. More... | |
Functions | |
GSErrCode | ACAPI_LibraryManagement_OpenLibraryPart (const API_OpenLibPartInfo *libPartToOpen) |
Opens the given library part in the Library Part Editor window. | |
GSErrCode | ACAPI_LibraryManagement_ResetLibraries () |
Resets the loaded libraries. | |
GSErrCode | ACAPI_Dialog_ActivateSessionReport () |
Activates the session report window. | |
GSErrCode | ACAPI_Dialog_PetPalette (API_PetPaletteType *petPaletteInfo, APIPetPaletteCallBackProc *petPaletteProc) |
Opens a pet palette for performing user input from the add-on. | |
GSErrCode | ACAPI_Dialog_SetUserControlCallback (API_UCCallbackType *callbackType) |
Helper function to set the proper attribute callback for a user control. | |
GSErrCode | ACAPI_Dialog_ObjectSettings (API_ObjectSettingsPars *objectSettingsPars) |
Opens the Object/Lamp(/Window/Door) Settings dialog. | |
GSErrCode | ACAPI_Dialog_SettingsDialog (API_ToolBoxItem *toolBoxItem, const API_Guid *guid=nullptr, const UShort *indexOfSubTool=nullptr) |
Opens a tool settings dialog. | |
GSErrCode | ACAPI_Dialog_SettingsDialog (const API_Guid *dialogTestID=nullptr, const UShort *indexOfSubTool=nullptr) |
Opens the settings dialog of the current tool or current selection. | |
GSErrCode | ACAPI_Dialog_SaveLibPartFileDialog (bool *retCode, IO::Location *location, bool *browseForFolder=nullptr, GS::UniString *dialogTitle=nullptr, GS::UniString *dialogTypeStr=nullptr) |
Opens the Save Library Part dialog and returns the selected location. | |
GSErrCode | ACAPI_Dialog_OpenLibPartFileDialog (bool *retCode, IO::Location *location, bool *isGSM, bool *wasExternalEditorInvoked) |
Invokes the "Open Library Part" dialog. | |
GSErrCode | ACAPI_Dialog_OpenPictureDialog (bool *retCode, IO::Location *location) |
Opens an "Open Picture" dialog (same dialog as on Material Settings, Texture tabpage). | |
GSErrCode | ACAPI_Dialog_OpenOtherObjectDialog (bool *retCode, IO::Location *location, bool *isRoom) |
Invokes the "Open Library" dialog. | |
GSErrCode | ACAPI_UnregisterModelessWindow (Int32 referenceID) |
Ends the registration of an add-on's modeless palette with the API. | |
void | ACAPI_WriteReport (const GS::UniString &format, bool withDial,...) |
Writes a report string into the Report Windowot into a custom alert window. | |
GSErrCode | ACAPI_Dialog_CreateAttributePicker (const API_AttributePickerParams &attributePickerParams, GS::Owner< API_AttributePicker > &attributePicker) |
Enables the attribute picker functionality for a push check, if the user clicks the push check, the picker will open. Attributes pickers can be used to choose an attribute. On these new pickers, the folder structure and searching functionality is enabled. | |
GSErrCode | ACAPI_RegisterTeamworkReserveInterface (const API_Guid &objectId, short dialogId, short tabId, short tabResId, GSResModule resModule, GSResModule dialogIconResModule, APIReservationTeamWorkPanelParentUIRefreshNeededProc *teamworkPanelParentUIRefreshNeeded, APIReservationTeamWorkPanelParentDataSaveNeededProc *teamworkPanelParentDataSaveNeeded, const GS::UniString &requestMessage, API_TWAccessRights createRight=APINoPermission, API_TWAccessRights deleteModifyRight=APINoPermission) |
Registers an interface supporting reserve/release in teamwork operations. | |
GSErrCode | ACAPI_UnregisterTeamworkReserveInterface (const API_Guid &objectId, short dialogId=0) |
Unregisters a previously registered interface. | |
GSErrCode | ACAPI_RefreshTeamworkReserveInterface (const API_Guid &objectId, short dialogId, bool isTeamWorkPanelParentUIRefreshNeeded=false) |
Refreshes the registered teamwork interface. | |
GSErrCode | ACAPI_Teamwork_SendReleaseCommentMail (const API_Guid &objectId, short dialogId) |
Sends the release comment mail. | |
Dialog and Palette managent, and Integration to existing dialogs.
typedef GSErrCode APIPetPaletteCallBackProc(short actValue) |
User supplied callback procedure during pet palette input.
actValue | [in] The current value of the pet palette control. |
ACAPI_Interface
function, this callback procedure will be called whenever the user chooses a new item on the pet palette. enum API_AddParID : Int32 |
Possible types of a Library Part additive parameter.
enum API_ColorDepthID |
Various options for color depth.
enum API_CutPlanePlanConn |
Define the status of the link between the Section/Elevation and the Floor Plan.
Sun position options for calculating Sun's angles.
enum API_UserControlType |
Describes the different types of user controls.
GSErrCode ACAPI_Dialog_ActivateSessionReport | ( | ) |
Activates the session report window.
ACAPI_WriteReport
. GSErrCode ACAPI_Dialog_CreateAttributePicker | ( | const API_AttributePickerParams & | attributePickerParams, |
GS::Owner< API_AttributePicker > & | attributePicker | ||
) |
Enables the attribute picker functionality for a push check, if the user clicks the push check, the picker will open. Attributes pickers can be used to choose an attribute. On these new pickers, the folder structure and searching functionality is enabled.
attributePickerParams | [in] Parameters of attribute picker (type of the attribute, the parameters of push check). |
attributePicker | [out] The constructed picker. |
GSErrCode ACAPI_Dialog_ObjectSettings | ( | API_ObjectSettingsPars * | objectSettingsPars | ) |
Opens the Object/Lamp(/Window/Door) Settings dialog.
objectSettingsPars | [in/out] The parameters to open the dialog with. Also contains the selected object on return. |
GSErrCode ACAPI_Dialog_OpenLibPartFileDialog | ( | bool * | retCode, |
IO::Location * | location, | ||
bool * | isGSM, | ||
bool * | wasExternalEditorInvoked | ||
) |
Invokes the "Open Library Part" dialog.
retCode | Return code is true when a valid gsm file is successfully opened in the "Open Library Part" dialog. |
location | Location of the selected library part. |
isGSM | [in] Optional parameter. If it is set to true, the file filter in the open dialog is set to "General GDL Objects". |
wasExternalEditorInvoked | [out] Optional parameter. If it is set to true, the file was opened using an external editor. |
GSErrCode ACAPI_Dialog_OpenOtherObjectDialog | ( | bool * | retCode, |
IO::Location * | location, | ||
bool * | isRoom | ||
) |
Invokes the "Open Library" dialog.
retCode | [out] Return code. True if the zone stamp or label object file selected in the file open dialog was opened successfully. |
location | The location of the library part. |
isRoom | [in] Optional parameter. Defines the type of the file in the file open dialog (true - the file type is Zone, nullptr or false - the file type is Label) |
GSErrCode ACAPI_Dialog_OpenPictureDialog | ( | bool * | retCode, |
IO::Location * | location | ||
) |
Opens an "Open Picture" dialog (same dialog as on Material Settings, Texture tabpage).
retCode | [out] True if a valid picture format file is selected in the "Open Picture" dialog. |
location | [out] The location of the selected Picture format file. |
GSErrCode ACAPI_Dialog_PetPalette | ( | API_PetPaletteType * | petPaletteInfo, |
APIPetPaletteCallBackProc * | petPaletteProc | ||
) |
Opens a pet palette for performing user input from the add-on.
petPaletteInfo | [in] identifies the pet palette. |
petPaletteProc | [in] callback procedure for the palette. |
GSErrCode ACAPI_Dialog_SaveLibPartFileDialog | ( | bool * | retCode, |
IO::Location * | location, | ||
bool * | browseForFolder = nullptr , |
||
GS::UniString * | dialogTitle = nullptr , |
||
GS::UniString * | dialogTypeStr = nullptr |
||
) |
Opens the Save Library Part dialog and returns the selected location.
retCode | [out] returns whether the dialog was closed with confirmation (OK, Save, etc.) |
location | [in/out] sets the default library and filename to open the dialog with, and returns the location of the chosen file |
browseForFolder | [in] enables the dialog to save Library Parts outside the Embedded Library (optional; the default value is false) |
dialogTitle | [in] defines the title of the dialog (optional) |
dialogTypeStr | [in] defines the library part type of the dialog (optional); applicable identifiers are: "ExportObjectDialog" (default), "ExportDoorDialog", "ExportWindowDialog" |
GSErrCode ACAPI_Dialog_SettingsDialog | ( | API_ToolBoxItem * | toolBoxItem, |
const API_Guid * | guid = nullptr , |
||
const UShort * | indexOfSubTool = nullptr |
||
) |
Opens a tool settings dialog.
toolBoxItem | [in] The parameters to open the dialog with. |
guid | [in] Special unique identifier of the dialog, used in automated testing. |
indexOfSubTool | [in] Index of sub tool to open the dialog at. If the dialog belongs to a hierarchical tool, this parameter can help to open the dialog with the desired sub tool in focus. Indexing starts from 0, which belongs to the first sub tool on the UI. If you do not want to customize this behavior, leave it empty. |
GSErrCode ACAPI_Dialog_SettingsDialog | ( | const API_Guid * | dialogTestID = nullptr , |
const UShort * | indexOfSubTool = nullptr |
||
) |
Opens the settings dialog of the current tool or current selection.
dialogTestID | [in] Special unique identifier of the dialog, used in automated testing. |
indexOfSubTool | [in] Index of sub tool to open the dialog at. If the dialog belongs to a hierarchical tool, this parameter can help to open the dialog with the desired sub tool in focus. Indexing starts from 0, which belongs to the first sub tool on the UI. If you do not want to customize this behavior, leave it empty. |
GSErrCode ACAPI_Dialog_SetUserControlCallback | ( | API_UCCallbackType * | callbackType | ) |
Helper function to set the proper attribute callback for a user control.
callbackType | [in] identifies the control to set the callback for. |
GSErrCode ACAPI_LibraryManagement_OpenLibraryPart | ( | const API_OpenLibPartInfo * | libPartToOpen | ) |
Opens the given library part in the Library Part Editor window.
libPartToOpen | [in] Identifies the library part to open. |
GSErrCode ACAPI_LibraryManagement_ResetLibraries | ( | ) |
Resets the loaded libraries.
GSErrCode ACAPI_RefreshTeamworkReserveInterface | ( | const API_Guid & | objectId, |
short | dialogId, | ||
bool | isTeamWorkPanelParentUIRefreshNeeded = false |
||
) |
Refreshes the registered teamwork interface.
objectId | [in] The unique identifier of this interface (that you passed during registration). |
dialogId | [in] The dialog ID you registered the interface for. |
isTeamWorkPanelParentUIRefreshNeeded | [in] Update the parent UI as well? |
GSErrCode ACAPI_RegisterTeamworkReserveInterface | ( | const API_Guid & | objectId, |
short | dialogId, | ||
short | tabId, | ||
short | tabResId, | ||
GSResModule | resModule, | ||
GSResModule | dialogIconResModule, | ||
APIReservationTeamWorkPanelParentUIRefreshNeededProc * | teamworkPanelParentUIRefreshNeeded, | ||
APIReservationTeamWorkPanelParentDataSaveNeededProc * | teamworkPanelParentDataSaveNeeded, | ||
const GS::UniString & | requestMessage, | ||
API_TWAccessRights | createRight = APINoPermission , |
||
API_TWAccessRights | deleteModifyRight = APINoPermission |
||
) |
Registers an interface supporting reserve/release in teamwork operations.
objectId | [in] The unique identifier of this interface. |
dialogId | [in] The dialog ID you register the interface for. |
tabId | [in] The tab page ID you register the interface for. |
tabResId | [in] The resource describing the tab page interface elements. |
resModule | [in] The resource module identifier that identifies the module containing the tab page interface elements. |
dialogIconResModule | [in] The resource module identifier that identifies the module containing the tab page icons. |
teamworkPanelParentUIRefreshNeeded | [in] The callback function which is called when you have to refresh the items on the registered interface. |
teamworkPanelParentDataSaveNeeded | [in] The callback function which is called before your panel is closed. You can use this function to set an internal state in your add-on which you can use later to perform teamwork-related operations (e.g., reserve or release AddOnObjects). |
requestMessage | [in] The request message. |
createRight | [in] The teamwork create right you assign to this interface. |
deleteModifyRight | [in] The teamwork delete and modify right you assign to this interface. |
objectId
is APINULLGuid
or dialogId
is 0 or tabId
is 0.objectId
is APINULLGuid
. GSErrCode ACAPI_Teamwork_SendReleaseCommentMail | ( | const API_Guid & | objectId, |
short | dialogId | ||
) |
Sends the release comment mail.
objectId | [in] The unique identifier of this interface (that you passed during registration). |
dialogId | [in] The dialog ID you registered the interface for. |
GSErrCode ACAPI_UnregisterModelessWindow | ( | Int32 | referenceID | ) |
Ends the registration of an add-on's modeless palette with the API.
referenceID | [in] The number to uniquely identify your modeless palette. Use the same ID that was supplied to ACAPI_RegisterModelessWindow. |
GSErrCode ACAPI_UnregisterTeamworkReserveInterface | ( | const API_Guid & | objectId, |
short | dialogId = 0 |
||
) |
Unregisters a previously registered interface.
objectId | [in] The unique identifier of this interface (that you passed during registration). |
dialogId | [out] The dialog ID you registered the interface for. |
objectId
is not registered. void ACAPI_WriteReport | ( | const GS::UniString & | format, |
bool | withDial, | ||
... | |||
) |
Writes a report string into the Report Windowot into a custom alert window.
format | A pointer to the message/format string. |
withDial | If true an alert window displaying the report string comes up, otherwise it writes to the Report window. |
... | This a variadic argument which supplies the parameters to the format string |