Attribute¶
Read and manage Archicad attributes and attribute folders, including their identifiers, settings and previews.
Access this group through api.official.attribute.
Commands¶
No commands match. Try another name or clear the filter.
For exceptions shared by Unified API commands, see error handling.
create_attribute_folders ¶
create_attribute_folders(
attribute_folders: list[
AttributeFolderCreationParameters
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Creates attribute folders. To create a folder, its full path has to be provided. The command will create all folders along the path, if they do not exist.
Parameters:
-
attribute_folders(list[AttributeFolderCreationParameters]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
delete_attribute_folders ¶
delete_attribute_folders(
attribute_folder_ids: list[
AttributeFolderIdWrapperItem
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Deletes attribute folders and all the deletable attributes and folders it contains. To delete a folder, its identifier has to be provided.
Parameters:
-
attribute_folder_ids(list[AttributeFolderIdWrapperItem]) –A list of attribute folder identifiers.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
delete_attributes ¶
delete_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Deletes attributes.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
get_active_pen_tables ¶
get_active_pen_tables() -> GetActivePenTablesResult
get_attribute_folder_structure ¶
get_attribute_folder_structure(
attribute_type: AttributeType,
path: None | list[str] = None,
) -> AttributeFolderStructure
Returns the detailed folder structure for the attributes of a given type. If the path is not given, the root folder will be returned
Parameters:
-
attribute_type(AttributeType) – -
path(None | list[str], default:None) –A list of attribute folder names. May be empty.
Returns:
get_attribute_folders ¶
get_attribute_folders(
attribute_folder_ids: list[
AttributeFolderIdWrapperItem
],
) -> list[AttributeFolderWrapperItem | ErrorItem]
Returns the detailed attribute folders identified by their Ids.
Parameters:
-
attribute_folder_ids(list[AttributeFolderIdWrapperItem]) –A list of attribute folder identifiers.
Returns:
-
list[AttributeFolderWrapperItem | ErrorItem]–A list of attribute folders.
get_attributes_by_type ¶
get_attributes_by_type(
attribute_type: AttributeType,
) -> list[AttributeIdWrapperItem]
Returns the identifier of every attribute of the given type.
Parameters:
-
attribute_type(AttributeType) –
Returns:
-
list[AttributeIdWrapperItem]–A list of attribute identifiers.
get_attributes_indices ¶
get_attributes_indices(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[AttributeIndexAndGuidWrapperItem | ErrorItem]
Returns the requested indices and guids of attributes.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[AttributeIndexAndGuidWrapperItem | ErrorItem]–A list of complete attribute identifiers.
get_building_material_attributes ¶
get_building_material_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[BuildingMaterialAttributeWrapperItem | ErrorItem]
Returns the detailed building material attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[BuildingMaterialAttributeWrapperItem | ErrorItem]–A list of building material attributes and potential errors.
get_composite_attributes ¶
get_composite_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[CompositeAttributeWrapperItem | ErrorItem]
Returns the detailed composite attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[CompositeAttributeWrapperItem | ErrorItem]–A list of the composite attributes and potential errors.
get_fill_attributes ¶
get_fill_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | FillAttributeWrapperItem]
Returns the detailed fill attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | FillAttributeWrapperItem]–A list of fill attributes and potential errors.
get_layer_attributes ¶
get_layer_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | LayerAttributeWrapperItem]
Returns the detailed layer attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | LayerAttributeWrapperItem]–A list of layer attributes and potential errors.
get_layer_combination_attributes ¶
get_layer_combination_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | LayerCombinationAttributeWrapperItem]
Returns the detailed layer combination attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | LayerCombinationAttributeWrapperItem]–A list of layer combination attributes and potential errors.
get_line_attributes ¶
get_line_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | LineAttributeWrapperItem]
Returns the detailed line attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | LineAttributeWrapperItem]–A list of line attributes and potential errors.
get_pen_table_attributes ¶
get_pen_table_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | PenTableAttributeWrapperItem]
Returns the detailed pen table attributes (including their pens) identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | PenTableAttributeWrapperItem]–A list of pen table attributes and potential errors.
get_profile_attribute_preview ¶
get_profile_attribute_preview(
attribute_ids: list[AttributeIdWrapperItem],
image_width: int,
image_height: int,
background_color: None | RGBColor = None,
) -> list[ErrorItem | ImageWrapperItem]
Returns the preview image of each requested profile attribute in a base64 string format.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
-
image_width(int) –The width of the preview image.
-
image_height(int) –The height of the preview image.
-
background_color(None | RGBColor, default:None) –The background color of the preview image.
Returns:
-
list[ErrorItem | ImageWrapperItem]–The preview images of the profiles.
get_profile_attributes ¶
get_profile_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | ProfileAttributeWrapperItem]
Returns the detailed profile attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | ProfileAttributeWrapperItem]–A list of the profile attributes and potential errors.
get_surface_attributes ¶
get_surface_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | SurfaceAttributeWrapperItem]
Returns the detailed surface attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | SurfaceAttributeWrapperItem]–A list of surface attributes and potential errors.
get_zone_category_attributes ¶
get_zone_category_attributes(
attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | ZoneCategoryAttributeWrapperItem]
Returns the detailed zone category attributes identified by their GUIDs.
Parameters:
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
Returns:
-
list[ErrorItem | ZoneCategoryAttributeWrapperItem]–A list of zone category attributes and potential errors.
move_attributes_and_folders ¶
move_attributes_and_folders(
attribute_folder_ids: list[
AttributeFolderIdWrapperItem
],
attribute_ids: list[AttributeIdWrapperItem],
target_folder_id: AttributeFolderId,
) -> None
Moves attributes and attribute folders.
Parameters:
-
attribute_folder_ids(list[AttributeFolderIdWrapperItem]) –A list of attribute folder identifiers.
-
attribute_ids(list[AttributeIdWrapperItem]) –A list of attribute identifiers.
-
target_folder_id(AttributeFolderId) –
rename_attribute_folders ¶
rename_attribute_folders(
attribute_folder_parameters_list: list[
AttributeFolderRenameParameters
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Rename attribute folder.
Parameters:
-
attribute_folder_parameters_list(list[AttributeFolderRenameParameters]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
Related types¶
These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.
CreateAttributeFoldersParametersCreateAttributeFoldersResultDeleteAttributeFoldersParametersDeleteAttributeFoldersResultDeleteAttributesParametersDeleteAttributesResultGetActivePenTablesResultGetAttributeFolderStructureParametersGetAttributeFolderStructureResultGetAttributeFoldersParametersGetAttributeFoldersResultGetAttributesByTypeParametersGetAttributesByTypeResultGetAttributesIndicesParametersGetAttributesIndicesResultGetBuildingMaterialAttributesParametersGetBuildingMaterialAttributesResultGetCompositeAttributesParametersGetCompositeAttributesResultGetFillAttributesParametersGetFillAttributesResultGetLayerAttributesParametersGetLayerAttributesResultGetLayerCombinationAttributesParametersGetLayerCombinationAttributesResultGetLineAttributesParametersGetLineAttributesResultGetPenTableAttributesParametersGetPenTableAttributesResultGetProfileAttributePreviewParametersGetProfileAttributePreviewResultGetProfileAttributesParametersGetProfileAttributesResultGetSurfaceAttributesParametersGetSurfaceAttributesResultGetZoneCategoryAttributesParametersGetZoneCategoryAttributesResultMoveAttributesAndFoldersParametersRenameAttributeFoldersParametersRenameAttributeFoldersResultAttributeFolderCreationParametersAttributeFolderIdAttributeFolderIdWrapperItemAttributeFolderRenameParametersAttributeFolderStructureAttributeFolderWrapperItemAttributeIdWrapperItemAttributeIndexAndGuidWrapperItemAttributeTypeBuildingMaterialAttributeWrapperItemCompositeAttributeWrapperItemErrorItemFailedExecutionResultFillAttributeWrapperItemImageWrapperItemLayerAttributeWrapperItemLayerCombinationAttributeWrapperItemLineAttributeWrapperItemPenTableAttributeWrapperItemProfileAttributeWrapperItemRGBColorSuccessfulExecutionResultSurfaceAttributeWrapperItemZoneCategoryAttributeWrapperItem