Archicad 28 C++ API
|
Functions related to accessing and changing the Graphic Overrides and Graphic Override Combinations. More...
Classes | |
struct | API_OverrideCombination |
Represents a combination of override rules with a name. More... | |
struct | API_OverrideRuleGroup |
Represents a group of override rules with a name. More... | |
struct | API_OverriddenFillType |
Describes the fill types to be overridden. More... | |
struct | API_OverriddenSurfaceType |
Describes the surface types to be overridden. More... | |
struct | API_OverrideRuleStyle |
Specifies what, and how an API_OverrideRule should override. More... | |
struct | API_OverrideRule |
Represents an override rule. More... | |
struct | API_VisualOverriddenImage |
Visual overridden image descriptor. More... | |
Functions | |
GSErrCode | ACAPI_GraphicalOverride_EnableRenovationOverride (bool *oldOverrideVal, const bool *newOverrideVal) |
Enables renovation graphical overrides during ACAPI_DrawingPrimitive_ShapePrims. | |
GSErrCode | ACAPI_GraphicalOverride_EnableVisualOverride (bool *oldOverrideVal, const bool *newOverrideVal) |
Enables graphical overrides during ACAPI_DrawingPrimitive_ShapePrims. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideCombinationList (GS::Array< API_Guid > &combinationList) |
Retrieves a list of all override combinations in the current plan. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideRuleGroupList (GS::Array< API_Guid > &ruleGroupList) |
Retrieves a list of all override rule groups in the current plan. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideRuleList (GS::Array< API_Guid > &ruleList) |
Retrieves a list of all override rules in the current plan. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideCombination (API_OverrideCombination &combination, GS::Array< API_Guid > *ruleList=nullptr) |
Retrieves an override combination identified by its guid or name. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideRuleGroup (API_OverrideRuleGroup &ruleGroup, GS::Array< API_Guid > *ruleList=nullptr) |
Retrieves an override rule group identified by its guid or name. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideRuleById (API_OverrideRule &rule) |
Retrieves an override rule identified by its guid. | |
GSErrCode | ACAPI_GraphicalOverride_GetOverrideRuleByName (API_OverrideRule &rule, const API_Guid &ruleGroup) |
Retrieves an override rule identified by its name. | |
GSErrCode | ACAPI_GraphicalOverride_CreateOverrideCombination (API_OverrideCombination &combination, const GS::Array< API_Guid > &ruleList) |
Creates an override combination. | |
GSErrCode | ACAPI_GraphicalOverride_CreateOverrideRuleGroup (API_OverrideRuleGroup &ruleGroup) |
Creates an override rule group. | |
GSErrCode | ACAPI_GraphicalOverride_CreateOverrideRule (API_OverrideRule &rule, const API_Guid &ruleGroup) |
Creates an override rule. | |
GSErrCode | ACAPI_GraphicalOverride_ChangeOverrideCombination (const API_OverrideCombination &combination, const GS::Array< API_Guid > *const ruleList=nullptr) |
Changes an override combination identified by its guid. | |
GSErrCode | ACAPI_GraphicalOverride_ChangeOverrideRuleGroup (const API_OverrideRuleGroup &ruleGroup) |
Changes an override rule group identified by its guid. | |
GSErrCode | ACAPI_GraphicalOverride_ChangeOverrideRule (const API_OverrideRule &rule) |
Changes an override rule identified by its guid. | |
GSErrCode | ACAPI_GraphicalOverride_MoveOverrideRule (const API_Guid &rule, const API_Guid &targetRuleGroup, const API_Guid *nextRule) |
Moves an override rule between override rule groups. | |
GSErrCode | ACAPI_GraphicalOverride_DeleteOverrideCombination (const API_Guid &combination) |
Deletes an override combination identified by its guid. | |
GSErrCode | ACAPI_GraphicalOverride_DeleteOverrideRuleGroup (const API_Guid &ruleGroup) |
Deletes an override rule group identified by its guid and deletes all the override rules it contains. | |
GSErrCode | ACAPI_GraphicalOverride_DeleteOverrideRule (const API_Guid &rule) |
Deletes an override rule identified by its guid. | |
GSErrCode | ACAPI_GraphicalOverride_SetOverrideRuleGroupOrder (const GS::Array< API_Guid > &orderedRuleGroupIds) |
Sets the order of rule groups in the current project. | |
GSErrCode | ACAPI_GraphicalOverride_SetOverrideRuleOrder (const API_Guid &ruleGroup, const GS::Array< API_Guid > &orderedRuleIds) |
Sets the order of rules in the specified override rule group. | |
GSErrCode | ACAPI_GraphicalOverride_GetVisualOverriddenImage (const API_Guid &elemGuid, API_VisualOverriddenImage *image) |
Returns visual overridden preview image for and element. | |
Functions related to accessing and changing the Graphic Overrides and Graphic Override Combinations.
GSErrCode ACAPI_GraphicalOverride_ChangeOverrideCombination | ( | const API_OverrideCombination & | combination, |
const GS::Array< API_Guid > *const | ruleList = nullptr |
||
) |
Changes an override combination identified by its guid.
combination | [in] The combination to change. |
ruleList | [in] The ids of the rules that the combination should "contain", or nullptr if they shouldn't be changed. |
GSErrCode ACAPI_GraphicalOverride_ChangeOverrideRule | ( | const API_OverrideRule & | rule | ) |
Changes an override rule identified by its guid.
rule | [in] The rule to change. |
GSErrCode ACAPI_GraphicalOverride_ChangeOverrideRuleGroup | ( | const API_OverrideRuleGroup & | ruleGroup | ) |
Changes an override rule group identified by its guid.
ruleGroup | [in] The rule group to change. |
GSErrCode ACAPI_GraphicalOverride_CreateOverrideCombination | ( | API_OverrideCombination & | combination, |
const GS::Array< API_Guid > & | ruleList | ||
) |
Creates an override combination.
combination | [in/out] The combination to create. Once the operation is successfully completed, this will hold the valid guid of the created combination. |
ruleList | [in] The ids of the rules that the combination should "contain". |
GSErrCode ACAPI_GraphicalOverride_CreateOverrideRule | ( | API_OverrideRule & | rule, |
const API_Guid & | ruleGroup | ||
) |
Creates an override rule.
rule | [in/out] The rule to create. Once the operation is successfully completed, this will hold the valid guid of the created rule. |
ruleGroup | [in] The rule group the rule should belong to. |
GSErrCode ACAPI_GraphicalOverride_CreateOverrideRuleGroup | ( | API_OverrideRuleGroup & | ruleGroup | ) |
Creates an override rule group.
ruleGroup | [in/out] The rule group to create. Once the operation is successfully completed, this will hold the valid guid of the created rule group. |
GSErrCode ACAPI_GraphicalOverride_DeleteOverrideCombination | ( | const API_Guid & | combination | ) |
Deletes an override combination identified by its guid.
combination | [in] The guid of the combination to delete. |
GSErrCode ACAPI_GraphicalOverride_DeleteOverrideRule | ( | const API_Guid & | rule | ) |
Deletes an override rule identified by its guid.
rule | [in] The guid of the rule to delete. |
GSErrCode ACAPI_GraphicalOverride_DeleteOverrideRuleGroup | ( | const API_Guid & | ruleGroup | ) |
Deletes an override rule group identified by its guid and deletes all the override rules it contains.
ruleGroup | [in] The guid of the rule group to delete. |
GSErrCode ACAPI_GraphicalOverride_EnableRenovationOverride | ( | bool * | oldOverrideVal, |
const bool * | newOverrideVal | ||
) |
Enables renovation graphical overrides during ACAPI_DrawingPrimitive_ShapePrims.
oldOverrideVal | [out] Returns the current override state. |
newOverrideVal | [in] The new override state. |
GSErrCode ACAPI_GraphicalOverride_EnableVisualOverride | ( | bool * | oldOverrideVal, |
const bool * | newOverrideVal | ||
) |
Enables graphical overrides during ACAPI_DrawingPrimitive_ShapePrims.
oldOverrideVal | [out] Returns the current override state. |
newOverrideVal | [in] The new override state. |
GSErrCode ACAPI_GraphicalOverride_GetOverrideCombination | ( | API_OverrideCombination & | combination, |
GS::Array< API_Guid > * | ruleList = nullptr |
||
) |
Retrieves an override combination identified by its guid or name.
combination | [in/out] The guid field specifies the combination to retrieve. If the guid field is APINULLGuid, then the name field is used to find the combination. Once the operation is successfully completed, this will hold the retrieved combination. |
ruleList | [out] If not a nullptr, then the list of guids of the rules that the combination "contains". |
GSErrCode ACAPI_GraphicalOverride_GetOverrideCombinationList | ( | GS::Array< API_Guid > & | combinationList | ) |
Retrieves a list of all override combinations in the current plan.
combinationList | [out] The list of all override combinations in the current plan. |
GSErrCode ACAPI_GraphicalOverride_GetOverrideRuleById | ( | API_OverrideRule & | rule | ) |
Retrieves an override rule identified by its guid.
rule | [in/out] The guid field specifies the rule to retrieve. Once the operation is successfully completed, this will hold the retrieved rule. |
GSErrCode ACAPI_GraphicalOverride_GetOverrideRuleByName | ( | API_OverrideRule & | rule, |
const API_Guid & | ruleGroup | ||
) |
Retrieves an override rule identified by its name.
rule | [in/out] The name field is used to find the rule within the group. Once the operation is successfully completed, this will hold the retrieved rule. |
ruleGroup | The guid of the override rule group that contains the rule. |
GSErrCode ACAPI_GraphicalOverride_GetOverrideRuleGroup | ( | API_OverrideRuleGroup & | ruleGroup, |
GS::Array< API_Guid > * | ruleList = nullptr |
||
) |
Retrieves an override rule group identified by its guid or name.
ruleGroup | [in/out] The guid field specifies the rule group to retrieve. If the guid field is APINULLGuid, then the name field is used to find the rule group. Once the operation is successfully completed, this will hold the retrieved rule group. |
ruleList | [out] If not a nullptr, then the list of guids of the rules that belong to the rule group. |
GSErrCode ACAPI_GraphicalOverride_GetOverrideRuleGroupList | ( | GS::Array< API_Guid > & | ruleGroupList | ) |
Retrieves a list of all override rule groups in the current plan.
ruleGroupList | [out] The list of all override rule groups in the current plan. |
GSErrCode ACAPI_GraphicalOverride_GetOverrideRuleList | ( | GS::Array< API_Guid > & | ruleList | ) |
Retrieves a list of all override rules in the current plan.
ruleList | [out] The list of all override rules in the current plan. |
GSErrCode ACAPI_GraphicalOverride_GetVisualOverriddenImage | ( | const API_Guid & | elemGuid, |
API_VisualOverriddenImage * | image | ||
) |
Returns visual overridden preview image for and element.
elemGuid | [in] Element reference. |
image | [in/out] Visual overridden image descriptor. |
GSErrCode ACAPI_GraphicalOverride_MoveOverrideRule | ( | const API_Guid & | rule, |
const API_Guid & | targetRuleGroup, | ||
const API_Guid * | nextRule | ||
) |
Moves an override rule between override rule groups.
rule | [in] The id of the rule to move. |
targetRuleGroup | [in] The id of the rule group the rule should belong to after the move. |
nextRule | [in] The id of the rule this rule should be right before in the target group. If this is nullptr then the rule will be the last in the target group. |
GSErrCode ACAPI_GraphicalOverride_SetOverrideRuleGroupOrder | ( | const GS::Array< API_Guid > & | orderedRuleGroupIds | ) |
Sets the order of rule groups in the current project.
orderedRuleGroupIds | [in] The ids of all the user-defined rule groups in the expected order. |
GSErrCode ACAPI_GraphicalOverride_SetOverrideRuleOrder | ( | const API_Guid & | ruleGroup, |
const GS::Array< API_Guid > & | orderedRuleIds | ||
) |
Sets the order of rules in the specified override rule group.
ruleGroup | [in] The guid of the rule group all the rules belong to. |
orderedRuleIds | [in] The ids of all the rules in the expected order. |