Skip to content

Attribute

Read and manage Archicad attributes and attribute folders, including their identifiers, settings and previews.

Access this group through api.official.attribute.

Commands

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:

Returns:

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:

Returns:

delete_attributes

delete_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes attributes.

Parameters:

Returns:

get_active_pen_tables

get_active_pen_tables() -> GetActivePenTablesResult

Returns the model view and layout book pen table identifiers.

Returns:

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:

Returns:

get_attributes_by_type

get_attributes_by_type(
    attribute_type: AttributeType,
) -> list[AttributeIdWrapperItem]

Returns the identifier of every attribute of the given type.

Parameters:

Returns:

get_attributes_indices

get_attributes_indices(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[AttributeIndexAndGuidWrapperItem | ErrorItem]

Returns the requested indices and guids of attributes.

Parameters:

Returns:

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:

Returns:

get_composite_attributes

get_composite_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[CompositeAttributeWrapperItem | ErrorItem]

Returns the detailed composite attributes identified by their GUIDs.

Parameters:

Returns:

get_fill_attributes

get_fill_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | FillAttributeWrapperItem]

Returns the detailed fill attributes identified by their GUIDs.

Parameters:

Returns:

get_layer_attributes

get_layer_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | LayerAttributeWrapperItem]

Returns the detailed layer attributes identified by their GUIDs.

Parameters:

Returns:

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:

Returns:

get_line_attributes

get_line_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | LineAttributeWrapperItem]

Returns the detailed line attributes identified by their GUIDs.

Parameters:

Returns:

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:

Returns:

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:

get_profile_attributes

get_profile_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | ProfileAttributeWrapperItem]

Returns the detailed profile attributes identified by their GUIDs.

Parameters:

Returns:

get_surface_attributes

get_surface_attributes(
    attribute_ids: list[AttributeIdWrapperItem],
) -> list[ErrorItem | SurfaceAttributeWrapperItem]

Returns the detailed surface attributes identified by their GUIDs.

Parameters:

Returns:

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:

Returns:

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:

rename_attribute_folders

rename_attribute_folders(
    attribute_folder_parameters_list: list[
        AttributeFolderRenameParameters
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Rename attribute folder.

Parameters:

Returns:

These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.