Archicad 28 C++ API
|
Functions related to accessing and manipulating Classification and the category-related data of elements. More...
Classes | |
struct | API_ClassificationItem |
Specifies a classification item. More... | |
struct | API_ClassificationSystem |
Specifies a classification system. More... | |
Enumerations | |
enum | API_ClassificationSystemNameConflictResolutionPolicy { API_MergeConflictingSystems , API_ReplaceConflictingSystems , API_SkipConflictingSystems } |
Enum used by ACAPI_Classification_Import. More... | |
enum | API_ClassificationItemNameConflictResolutionPolicy { API_ReplaceConflictingItems , API_SkipConflicitingItems } |
Enum used by ACAPI_Classification_Import. More... | |
Functions | |
GSErrCode | ACAPI_Element_GetClassificationItems (const API_Guid &elemGuid, GS::Array< GS::Pair< API_Guid, API_Guid > > &systemItemPairs) |
Retrieves all of the classifications of an element. | |
GSErrCode | ACAPI_Element_GetClassificationItemsDefault (const API_ElemType &type, GS::Array< GS::Pair< API_Guid, API_Guid > > &systemItemPairs) |
Retrieves all of the classifications of a default elem. | |
GSErrCode | ACAPI_Element_GetClassificationInSystem (const API_Guid &elemGuid, const API_Guid &systemGuid, API_ClassificationItem &item) |
Retrieves a classification of an elem in a given classification system. | |
GSErrCode | ACAPI_Element_GetClassificationInSystemDefault (const API_ElemType &type, const API_Guid &systemGuid, API_ClassificationItem &item) |
Retrieves a classification of a default elem in a given classification system. | |
GSErrCode | ACAPI_Element_RemoveClassificationItem (const API_Guid &elemGuid, const API_Guid &itemGuid) |
Removes a classification from an element. | |
GSErrCode | ACAPI_Element_RemoveClassificationItemDefault (const API_ElemType &type, const API_Guid &itemGuid) |
Removes a classification from an element. | |
bool | ACAPI_Element_IsClassificationItemVisible (const API_Guid &elemGuid, const API_Guid &classificationGuid) |
Tells whether a classification item is visible for an element. | |
bool | ACAPI_Element_IsClassificationItemVisibleDefault (const API_ElemType &type, const API_Guid &classificationGuid) |
Tells whether a classification item is visible for an element default. | |
GSErrCode | ACAPI_Notification_ClassificationVisibilityChanged () |
Sends out an APINotify_ClassificationVisibilityChanged project event notification to the other add-ons to state that at least one classification's visibility has changed. | |
GSErrCode | ACAPI_Classification_GetClassificationSystems (GS::Array< API_ClassificationSystem > &systems) |
Retrieves all of the classification systems in the plan. | |
GSErrCode | ACAPI_Classification_GetClassificationItem (API_ClassificationItem &item) |
Retrieves a classification item identified by its guid. | |
GSErrCode | ACAPI_Classification_GetClassificationItemParent (const API_Guid &itemGuid, API_ClassificationItem &parent) |
Retrieves the parent of a classification item. | |
GSErrCode | ACAPI_Classification_GetClassificationItemChildren (const API_Guid &itemGuid, GS::Array< API_ClassificationItem > &children) |
Retrieves the children of a classification item. | |
GSErrCode | ACAPI_Classification_GetClassificationItemSystem (const API_Guid &itemGuid, API_ClassificationSystem &system) |
Retrieves the system of a classification item. | |
GSErrCode | ACAPI_Classification_GetClassificationSystem (API_ClassificationSystem &system) |
Retrieves a classification system identified by its guid or by its name and edition version. | |
GSErrCode | ACAPI_Classification_GetClassificationSystemRootItems (const API_Guid &systemGuid, GS::Array< API_ClassificationItem > &items) |
Retrieves the root items of a classification system. | |
GSErrCode | ACAPI_Classification_CreateClassificationItem (API_ClassificationItem &item, const API_Guid &systemGuid, const API_Guid &parentItemGuid, const API_Guid &nextItemGuid) |
Creates a classification item. | |
GSErrCode | ACAPI_Classification_CreateClassificationSystem (API_ClassificationSystem &system) |
Creates a classification system. | |
GSErrCode | ACAPI_Classification_ChangeClassificationItem (const API_ClassificationItem &item) |
Modifies a classification item. | |
GSErrCode | ACAPI_Classification_ChangeClassificationSystem (const API_ClassificationSystem &system) |
Modifies a classification system. | |
GSErrCode | ACAPI_Classification_DeleteClassificationItem (const API_Guid &itemGuid) |
Deletes a classification item. | |
GSErrCode | ACAPI_Classification_DeleteClassificationSystem (const API_Guid &systemGuid) |
Deletes a classification system. | |
GSErrCode | ACAPI_Classification_Import (const GS::UniString &classificationXml, API_ClassificationSystemNameConflictResolutionPolicy systemConflictPolicy, API_ClassificationItemNameConflictResolutionPolicy itemConflictPolicy) |
Imports a classification xml. | |
Functions related to accessing and manipulating Classification and the category-related data of elements.
Enum used by ACAPI_Classification_Import.
Enum used by ACAPI_Classification_Import.
GSErrCode ACAPI_Classification_ChangeClassificationItem | ( | const API_ClassificationItem & | item | ) |
Modifies a classification item.
item | [in] The details of the classification item. |
GSErrCode ACAPI_Classification_ChangeClassificationSystem | ( | const API_ClassificationSystem & | system | ) |
Modifies a classification system.
system | [in] The details of the classification system. |
GSErrCode ACAPI_Classification_CreateClassificationItem | ( | API_ClassificationItem & | item, |
const API_Guid & | systemGuid, | ||
const API_Guid & | parentItemGuid, | ||
const API_Guid & | nextItemGuid | ||
) |
Creates a classification item.
item | [in/out] The details of the classification item to create. Once the operation is completed successfully this will hold the guid of the created classification item. |
systemGuid | [in] The guid of the classification system in which the item should be created. |
parentItemGuid | [in] The guid of the item that should be the parent of the newly created item (or null guid, if it should be a root item). |
nextItemGuid | [in] The guid of the item that should next in order to the created item (or null guid, if it created item should be the last). |
GSErrCode ACAPI_Classification_CreateClassificationSystem | ( | API_ClassificationSystem & | system | ) |
Creates a classification system.
system | [in/out] The details of the classification system to create. Once the operation is completed successfully this will hold the guid of the created classification system. |
GSErrCode ACAPI_Classification_DeleteClassificationItem | ( | const API_Guid & | itemGuid | ) |
Deletes a classification item.
itemGuid | [in] The identifier of classification item to delete. |
GSErrCode ACAPI_Classification_DeleteClassificationSystem | ( | const API_Guid & | systemGuid | ) |
Deletes a classification system.
systemGuid | [in] The identifier of classification system to delete. |
GSErrCode ACAPI_Classification_GetClassificationItem | ( | API_ClassificationItem & | item | ) |
Retrieves a classification item identified by its guid.
item | [in/out] The item.guid is the identifier of the classification item to retrieve. Once the operation is completed successfully this will hold the retrieved classification item. |
GSErrCode ACAPI_Classification_GetClassificationItemChildren | ( | const API_Guid & | itemGuid, |
GS::Array< API_ClassificationItem > & | children | ||
) |
Retrieves the children of a classification item.
itemGuid | [in] The guid of the item whose children should be retrieved. |
children | [out] The retrieved children classification items. |
GSErrCode ACAPI_Classification_GetClassificationItemParent | ( | const API_Guid & | itemGuid, |
API_ClassificationItem & | parent | ||
) |
Retrieves the parent of a classification item.
itemGuid | [in] The guid of the item whose parent should be retrieved. |
parent | [out] The retrieved parent classification item. Will be an empty classification item, with null guid, if the specified item doesn't have a parent. |
GSErrCode ACAPI_Classification_GetClassificationItemSystem | ( | const API_Guid & | itemGuid, |
API_ClassificationSystem & | system | ||
) |
Retrieves the system of a classification item.
itemGuid | [in] The guid of the item whose system should be retrieved. |
system | [out] The retrieved classification system. |
GSErrCode ACAPI_Classification_GetClassificationSystem | ( | API_ClassificationSystem & | system | ) |
Retrieves a classification system identified by its guid or by its name and edition version.
system | [in] The system.guid or the system.name and system.editionVersion together that identify the classification system to retrieve. [out] The retrieved classification system. |
GSErrCode ACAPI_Classification_GetClassificationSystemRootItems | ( | const API_Guid & | systemGuid, |
GS::Array< API_ClassificationItem > & | items | ||
) |
Retrieves the root items of a classification system.
systemGuid | [in] The guid of the classification system whose root items should be retrieved. |
items | [out] The retrieved root classification items of the referenced system. |
GSErrCode ACAPI_Classification_GetClassificationSystems | ( | GS::Array< API_ClassificationSystem > & | systems | ) |
Retrieves all of the classification systems in the plan.
systems | [out] The retrieved classification systems. |
GSErrCode ACAPI_Classification_Import | ( | const GS::UniString & | classificationXml, |
API_ClassificationSystemNameConflictResolutionPolicy | systemConflictPolicy, | ||
API_ClassificationItemNameConflictResolutionPolicy | itemConflictPolicy | ||
) |
Imports a classification xml.
classificationXml | [in] The classification xml to import. | ||||||||
systemConflictPolicy | [in] Specifies how to resolve classification system conflicts.
| ||||||||
itemConflictPolicy | [in] Specifies how to resolve classification item conflicts.
|
GSErrCode ACAPI_Element_GetClassificationInSystem | ( | const API_Guid & | elemGuid, |
const API_Guid & | systemGuid, | ||
API_ClassificationItem & | item | ||
) |
Retrieves a classification of an elem in a given classification system.
elemGuid | [in] The guid of the element. |
systemGuid | [in] The guid of the classification system in which the classification item should be retrieved. |
item | [out] The retrieved classification item (empty with null guid if the elem doesn't have a classification in the given system). |
GSErrCode ACAPI_Element_GetClassificationInSystemDefault | ( | const API_ElemType & | type, |
const API_Guid & | systemGuid, | ||
API_ClassificationItem & | item | ||
) |
Retrieves a classification of a default elem in a given classification system.
type | [in] Type of the default element. |
systemGuid | [in] The guid of the classification system in which the classification item should be retrieved. |
item | [out] The retrieved classification item (empty with null guid if the elem doesn't have a classification in the given system). |
GSErrCode ACAPI_Element_GetClassificationItems | ( | const API_Guid & | elemGuid, |
GS::Array< GS::Pair< API_Guid, API_Guid > > & | systemItemPairs | ||
) |
Retrieves all of the classifications of an element.
elemGuid | [in] The guid of the element. |
systemItemPairs | [out] A list of classification system and classification item guid pairs, that represent the element's classifications. |
GSErrCode ACAPI_Element_GetClassificationItemsDefault | ( | const API_ElemType & | type, |
GS::Array< GS::Pair< API_Guid, API_Guid > > & | systemItemPairs | ||
) |
Retrieves all of the classifications of a default elem.
type | [in] Type of the default element. |
systemItemPairs | [out] A list of classification system and classification item guid pairs, that represent the element's classifications. |
bool ACAPI_Element_IsClassificationItemVisible | ( | const API_Guid & | elemGuid, |
const API_Guid & | classificationGuid | ||
) |
Tells whether a classification item is visible for an element.
elemGuid | [in] The element GUID to search for. |
classificationGuid | [in] The classification item GUID to search for. |
bool ACAPI_Element_IsClassificationItemVisibleDefault | ( | const API_ElemType & | type, |
const API_Guid & | classificationGuid | ||
) |
Tells whether a classification item is visible for an element default.
type | [in] Type of the default element. |
classificationGuid | [in] The classification item GUID to search for. |
GSErrCode ACAPI_Element_RemoveClassificationItem | ( | const API_Guid & | elemGuid, |
const API_Guid & | itemGuid | ||
) |
Removes a classification from an element.
elemGuid | [in] The identifier of the element whose classification should be removed. |
itemGuid | [in] The guid of the classification item, that should be removed from the element. |
GSErrCode ACAPI_Element_RemoveClassificationItemDefault | ( | const API_ElemType & | type, |
const API_Guid & | itemGuid | ||
) |
Removes a classification from an element.
type | [in] Type of the default element. |
itemGuid | [in] The guid of the classification item, that should be removed from the element. |
GSErrCode ACAPI_Notification_ClassificationVisibilityChanged | ( | ) |
Sends out an APINotify_ClassificationVisibilityChanged
project event notification to the other add-ons to state that at least one classification's visibility has changed.