Skip to content

Property

Read and manage property definitions, groups and values for elements, components, attributes and tool defaults.

Access this group through api.tapir.property.

Commands

For exceptions shared by Unified API commands, see error handling.

add_property_to_attributes

add_property_to_attributes(
    property_id: PropertyId,
    attribute_ids: list[AttributeIdArrayItem],
) -> SuccessfulExecutionResult

Makes an existing custom property available for the given attributes (for example Building Materials), in one undo step. Available in Archicad 25, 26 and 27 only.

Parameters:

  • property_id (PropertyId) –

    An existing custom property. Create it first with CreatePropertyDefinitions if needed.

  • attribute_ids (list[AttributeIdArrayItem]) –

    The attributes (for example Building Materials) to make the property available for.

Returns:

check_property_values

check_property_values(
    property_values: list[PropertyValueCheckInput],
) -> list[ErrorItem | PropertyValueCheck]

Checks whether the given values are acceptable for the given property definitions, without changing anything.

Parameters:

  • property_values (list[PropertyValueCheckInput]) –

    The values to check, each with the property definition it is checked against.

Returns:

  • list[ErrorItem | PropertyValueCheck] –

    One item for each value, in the order of the input: whether it is acceptable, or an error if the property was not found.

create_property_definitions

create_property_definitions(
    property_definitions: list[PropertyDefinitionArrayItem],
) -> list[ErrorItem | PropertyIdArrayItem]

Creates Custom Property Definitions based on the given parameters.

Parameters:

Returns:

create_property_groups

create_property_groups(
    property_groups: list[PropertyGroupArrayItem],
) -> list[PropertyGroupIdArrayItem]

Creates Property Groups based on the given parameters.

Parameters:

Returns:

delete_property_definitions

delete_property_definitions(
    property_ids: list[PropertyIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes the given Custom Property Definitions. With dryRun true nothing is deleted and no undo step is created: the response has dryRun set to true, and each property that exists gets wouldDelete.

Parameters:

Returns:

  • list[FailedExecutionResult | SuccessfulExecutionResult] –

    One result for each input property, in the order of the input. On a dry run a property that exists gets wouldDelete; Archicad can still refuse to delete one that exists (for example a built-in property).

delete_property_definitions_dry_run

delete_property_definitions_dry_run(
    property_ids: list[PropertyIdArrayItem],
) -> DeletePropertyDefinitionsResult

Preview this command without applying its changes. Deletes the given Custom Property Definitions. With dryRun true nothing is deleted and no undo step is created: the response has dryRun set to true, and each property that exists gets wouldDelete.

Parameters:

Returns:

delete_property_groups

delete_property_groups(
    property_group_ids: list[PropertyGroupIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes the given Custom Property Groups. With dryRun true nothing is deleted and no undo step is created: the response has dryRun set to true, and each property group that exists gets wouldDelete.

Parameters:

Returns:

  • list[FailedExecutionResult | SuccessfulExecutionResult] –

    One result for each input property group, in the order of the input. On a dry run a property group that exists gets wouldDelete; Archicad can still refuse to delete one that exists (for example a built-in group).

delete_property_groups_dry_run

delete_property_groups_dry_run(
    property_group_ids: list[PropertyGroupIdArrayItem],
) -> DeletePropertyGroupsResult

Preview this command without applying its changes. Deletes the given Custom Property Groups. With dryRun true nothing is deleted and no undo step is created: the response has dryRun set to true, and each property group that exists gets wouldDelete.

Parameters:

Returns:

get_all_properties

get_all_properties(
    properties: None | list[PropertyIdArrayItem] = None,
    property_types: None
    | list[PropertyDefinitionType] = None,
    include_availability: None | bool = None,
) -> GetAllPropertiesResult

Returns all user defined and built-in properties. Optionally only the given properties or property types, and without the availability lists.

Parameters:

  • properties (None | list[PropertyIdArrayItem], default: None ) –

    Returns only the definitions of these properties. Identifiers not found in the project are left out of the response. All properties are returned when omitted.

  • property_types (None | list[PropertyDefinitionType], default: None ) –

    Returns only the properties of these types. All types are returned when omitted.

  • include_availability (None | bool, default: None ) –

    Adds the availability list (the classification items a custom property is available for) to each custom property. Default is true.

Returns:

get_components_of_elements

get_components_of_elements(
    elements: list[ElementIdArrayItem],
) -> list[ElementComponentsArrayItem | ErrorItem]

Returns the components of the elements: the building material skins of composite walls, slabs, roofs and shells, and the parts of complex profile walls, beams and columns. The components have their own property values (building material, thickness, area, volume and the properties of the building material); read them with GetPropertyValuesOfElementComponents.

Parameters:

Returns:

  • list[ElementComponentsArrayItem | ErrorItem] –

    The components of each element, in the order of the given elements. Each component id carries the element id too, so the items can be passed on to GetPropertyValuesOfElementComponents as they are.

get_properties_of_tool_defaults

get_properties_of_tool_defaults(
    element_types: list[ElementType],
    filter: None | ToolDefaultPropertyFilter = None,
    include_values: None | bool = None,
) -> list[ErrorItem | ToolDefaultProperties]

Returns the property definitions of the tool defaults (the settings new elements get) of the given element types, filtered by kind (all by default), and optionally the value of each property in the tool default.

Parameters:

  • element_types (list[ElementType]) –

    The element types whose tool defaults (the settings new elements get) are read.

  • filter (None | ToolDefaultPropertyFilter, default: None ) –
  • include_values (None | bool, default: None ) –

    Adds the value of each property in the tool default (propertyValue), or an error in its place when it has none. Default is false.

Returns:

  • list[ErrorItem | ToolDefaultProperties] –

    The properties of the tool defaults of each element type, in the order of the given element types. Invalid element types are represented by error objects.

get_property_availability_of_defaults

get_property_availability_of_defaults(
    element_type: ElementType,
    properties: list[PropertyIdArrayItem],
) -> list[DefaultPropertyAvailability | ErrorItem]

Tells whether the given properties are available and whether they are visible in the current tool default of an element type, before creating new elements. It checks the native tool default only, not a Favorite that is not applied. Unknown properties are reported as errors, not as unavailable. Available from Archicad 26.

Parameters:

  • element_type (ElementType) –

    The element type whose current tool default is checked. This is the native tool default, a Favorite counts only after it was applied.

  • properties (list[PropertyIdArrayItem]) –

    A list of property identifiers.

Returns:

get_property_definitions_of_attributes

get_property_definitions_of_attributes(
    attribute_ids: list[AttributeIdArrayItem],
    filter: AttributePropertyDefinitionFilter | None = None,
) -> list[AttributePropertyIds | ErrorItem]

Returns the property definitions of the given attributes (for example Building Materials): the user defined, the fundamental built-in, or all of them.

Parameters:

Returns:

get_property_definitions_of_element_components

get_property_definitions_of_element_components(
    element_components: list[ElementComponentIdArrayItem],
    filter: Filter | None = None,
) -> list[ComponentPropertyDefinitions | ErrorItem]

Returns the property definitions available on the given element components, optionally filtered to user defined or built-in ones.

Parameters:

  • element_components (list[ElementComponentIdArrayItem]) –

    A list of element components.

  • filter (Filter | None, default: None ) –

    Which property definitions to return: the user defined (Custom) ones, the built-in ones, or all. The default is All.

Returns:

  • list[ComponentPropertyDefinitions | ErrorItem] –

    The property definitions available on each element component, in the order of the given element components. GetAllProperties returns the full details of a property.

get_property_editability

get_property_editability(
    properties: list[PropertyIdArrayItem],
    elements: None | list[ElementIdArrayItem] = None,
    element_types: None | list[ElementType] = None,
    property_definition_defaults: None | bool = None,
) -> GetPropertyEditabilityResult

Tells whether the values of the given properties can be modified, and whether the properties are visible, for the given elements. Also tells whether they can be modified in the tool defaults of element types (from Archicad 26) and in the default values of the property definitions themselves. Unknown elements, element types and properties are reported as errors, not as locked properties.

Parameters:

  • properties (list[PropertyIdArrayItem]) –

    A list of property identifiers.

  • elements (None | list[ElementIdArrayItem], default: None ) –

    Checks whether the value of each property can be modified for these elements, and whether each property is visible for them.

  • element_types (None | list[ElementType], default: None ) –

    Checks whether the value of each property can be modified in the tool default of these element types.

  • property_definition_defaults (None | bool, default: None ) –

    When true, checks whether the default value of each property definition can be modified. This is the default value of the property definition itself, not the tool default of an element type.

Returns:

get_property_expression_references

get_property_expression_references(
    property_ids: list[PropertyIdArrayItem],
) -> list[ErrorItem | References]

Returns the strings that refer to the given properties in property expressions.

Parameters:

Returns:

  • list[ErrorItem | References] –

    One item for each property, in the order of the input: its expression reference, or an error.

get_property_values_of_attributes

get_property_values_of_attributes(
    attribute_ids: list[AttributeIdArrayItem],
    properties: list[PropertyIdArrayItem],
    include_status: None | bool = None,
) -> list[AttributePropertyValuesResult | ErrorItem]

Returns the property values of the attributes for the given property. With includeStatus it also returns whether each property is available, editable and visible for the attribute (from 1.7.3).

Parameters:

  • attribute_ids (list[AttributeIdArrayItem]) –

    A list of attributes.

  • properties (list[PropertyIdArrayItem]) –

    A list of property identifiers.

  • include_status (None | bool, default: None ) –

    If true, each item also tells whether the property is available, editable and visible for the attribute, and a property without an available value is returned with its status and without a value instead of as an error. The default is false.

Returns:

get_property_values_of_element_components

get_property_values_of_element_components(
    element_components: list[ElementComponentIdArrayItem],
    properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | PropertyValuesArrayItem]

Returns the property values of the given element components for the given properties, in the shape of GetPropertyValuesOfElements. Use GetComponentsOfElements to list the components of an element.

Parameters:

Returns:

  • list[ErrorItem | PropertyValuesArrayItem] –

    The order of the outer list is that of the given element components. The order of the inner lists are that of the given properties. The items have the shape of GetPropertyValuesOfElements.

get_property_values_of_element_defaults

get_property_values_of_element_defaults(
    element_type: ElementType,
    properties: list[PropertyIdArrayItem],
) -> list[PropertyValueArrayItem | PropertyValueErrorItem]

Returns the values of the given properties in the current tool default of an element type, which new elements of that type get. It reads the native tool default of the generic variation of the type, not a Favorite that is not applied. A property that is not available for the tool default is reported as an error.

Parameters:

  • element_type (ElementType) –

    The element type whose current tool default is read. This is the native tool default of the generic variation of the type, a Favorite counts only after it was applied.

  • properties (list[PropertyIdArrayItem]) –

    A list of property identifiers.

Returns:

get_property_values_of_elements

get_property_values_of_elements(
    elements: list[ElementIdArrayItem],
    properties: list[PropertyIdArrayItem],
    include_availability: None | bool = None,
    *,
    use_si_units: None | bool = False,
) -> list[ErrorItem | PropertyValuesArrayItem]

Returns the property values of the elements for the given property. It works for subelements of hierarchal elements also. With includeAvailability it also tells whether each property is available for the element.

Parameters:

  • elements (list[ElementIdArrayItem]) –

    A list of elements.

  • properties (list[PropertyIdArrayItem]) –

    A list of property identifiers.

  • include_availability (None | bool, default: None ) –

    Adds isAvailable to each property value or error, telling whether the property is available for the element (for example by its classification). Default is false.

  • use_si_units (None | bool, default: False ) –

    Returns precise, locale-independent numeric strings in SI units, except degrees for angles. Default is false.

Returns:

  • list[ErrorItem | PropertyValuesArrayItem] –

    The order of the outer list is that of the given elements. The order of the inner lists are that of the given properties.

get_typed_property_values_of_elements

get_typed_property_values_of_elements(
    elements: list[ElementIdArrayItem],
    properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | TypedPropertyValuesForElement]

Returns the property values of the elements in JSON's own types instead of display text: numbers, integers, booleans, strings, lists of them, and the chosen options of an option set as their identifiers (a list for a multiple choice). Each value comes with its type (number, length, area, volume, angle, integer, string, boolean, their lists, singleEnum, multiEnum), its status (normal, userUndefined or notAvailable) and isDefault, in the PropertyValueDetails shape of Graphisoft's API. Measured values are in SI units (meters, square meters, cubic meters, radians) whatever the project's working units and language, and an option is named by its nonLocalizedValue when it has one. A property that is not found, cannot be evaluated for the element or has a Guid value gets an error item.

Parameters:

Returns:

import_properties_xml

import_properties_xml(
    xml: str, conflict_policy: PropertyImportConflictPolicy
) -> ImportPropertiesXmlResult

Imports a Property Manager XML export, with the given policy for names that already exist. Returns the property definitions it created and removed.

Parameters:

Returns:

make_property_available_for_elements

make_property_available_for_elements(
    elements: list[ElementIdArrayItem],
    property_id: PropertyId,
) -> SuccessfulExecutionResult

Makes a property definition available for all the given elements. Available in Archicad 25, 26 and 27.

Parameters:

Returns:

make_property_unavailable_for_elements

make_property_unavailable_for_elements(
    elements: list[ElementIdArrayItem],
    property_id: PropertyId,
) -> SuccessfulExecutionResult

Makes a property definition unavailable for all the given elements. Available in Archicad 25, 26 and 27.

Parameters:

Returns:

modify_property_value_of_elements

modify_property_value_of_elements(
    elements: list[ElementIdArrayItem],
    property_id: PropertyId,
    property_value: PropertyValue,
) -> SuccessfulExecutionResult

Sets one property value on all the given elements in a single step. If the property is not available for any of the elements, none of them is changed.

Parameters:

Returns:

remove_property_from_attributes

remove_property_from_attributes(
    property_id: PropertyId,
    attribute_ids: list[AttributeIdArrayItem],
) -> SuccessfulExecutionResult

Makes a custom property unavailable for the given attributes (for example Building Materials), in one undo step. Available in Archicad 25, 26 and 27 only. With dryRun true nothing is changed and no undo step is created: the response has dryRun set to true, and wouldDelete when the property and every attribute exist.

Parameters:

  • property_id (PropertyId) –
  • attribute_ids (list[AttributeIdArrayItem]) –

    The attributes (for example Building Materials) to make the property unavailable for.

Returns:

remove_property_from_attributes_dry_run

remove_property_from_attributes_dry_run(
    property_id: PropertyId,
    attribute_ids: list[AttributeIdArrayItem],
) -> RemovePropertyFromAttributesResult

Preview this command without applying its changes. Makes a custom property unavailable for the given attributes (for example Building Materials), in one undo step. Available in Archicad 25, 26 and 27 only. With dryRun true nothing is changed and no undo step is created: the response has dryRun set to true, and wouldDelete when the property and every attribute exist.

Parameters:

  • property_id (PropertyId) –
  • attribute_ids (list[AttributeIdArrayItem]) –

    The attributes (for example Building Materials) to make the property unavailable for.

Returns:

search_properties

search_properties(
    query: None | str = None,
    property_group: None | str = None,
    property_type: None | PropertyType = None,
    value_type: None | ValueType = None,
    collection_type: CollectionType | None = None,
    include_enum_values: None | bool = None,
    include_availability: None | bool = None,
    limit: None | int = None,
) -> list[PropertyDetails]

Searches properties by name or group substring with optional filtering by property type, value type, and collection type.

Parameters:

  • query (None | str, default: None ) –

    Case-insensitive substring to search in property name or property group name.

  • property_group (None | str, default: None ) –

    Optional case-insensitive substring to filter by property group name.

  • property_type (None | PropertyType, default: None ) –

    Optional filter by property definition type.

  • value_type (None | ValueType, default: None ) –

    Optional filter by property value type.

  • collection_type (CollectionType | None, default: None ) –

    Optional filter by property collection type.

  • include_enum_values (None | bool, default: None ) –

    If true, includes possibleEnumValues for enumeration properties. Default is false to minimize token footprint.

  • include_availability (None | bool, default: None ) –

    If true, includes classification availability. Default is false to minimize token footprint.

  • limit (None | int, default: None ) –

    Maximum number of matching properties to return.

Returns:

  • list[PropertyDetails] –

    A list of property details matching the search criteria.

set_built_in_property_values_of_attributes

set_built_in_property_values_of_attributes(
    attributes: list[AttributeBuiltInPropertyValues],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets built-in property values of attributes, writing the values of each attribute together. Custom properties are refused; set them with SetPropertyValuesOfAttributes. Returns one execution result per value.

Parameters:

Returns:

  • list[FailedExecutionResult | SuccessfulExecutionResult] –

    One result per given property value, attribute by attribute, in the order of the input. The values of one attribute are written together, so an error of that write is the result of each of them.

set_property_value_of_attributes

set_property_value_of_attributes(
    property_id: PropertyId,
    property_value: PropertyValue,
    attribute_ids: list[AttributeIdArrayItem],
) -> SuccessfulExecutionResult

Sets one property value on several attributes (for example Building Materials) in one undo step. If the property is not available for any of the given attributes, no attribute is changed.

Parameters:

Returns:

set_property_values_of_attributes

set_property_values_of_attributes(
    attribute_property_values: list[AttributePropertyValue],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the property values of attributes.

Parameters:

Returns:

set_property_values_of_element_defaults

set_property_values_of_element_defaults(
    element_default_property_values: list[
        ElementDefaultPropertyValue
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the property values of the tool defaults (the settings new elements get) of element types, so every element placed afterwards gets them, without saving and applying a favorite.

Parameters:

  • element_default_property_values (list[ElementDefaultPropertyValue]) –

    The property values to set on the tool defaults (the settings new elements get) of element types.

Returns:

set_property_values_of_elements

set_property_values_of_elements(
    element_property_values: list[ElementPropertyValue],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the property values of elements. It works for subelements of hierarchal elements also. With valueStatus an element's value can also be reset to the default value of the property (Default) or made undefined (UserUndefined, from 1.8.1). With dryRun true nothing is changed and no undo step is created: the response has dryRun set to true, and each item that passes the checks made before writing gets wouldChange, with the element's value now (oldValue) and the value a real run would write (newValue), both as GetPropertyValuesOfElements gives them.

Parameters:

  • element_property_values (list[ElementPropertyValue]) –

    A single real value accepts '.' or ',' as the decimal separator, so the value strings GetPropertyValuesOfElements returns can be written back: when both appear the last one is the decimal separator, a separator that appears more than once groups thousands, and a single separator is the decimal one. Unitless real and integer lists accept semicolon-separated numbers; an empty string sets an empty list. Invalid items reject the entire property write.

Returns:

  • list[FailedExecutionResult | SuccessfulExecutionResult] –

    One result for each item of elementPropertyValues, in the order of the input. On a dry run an item that passes every check made before writing (the property values of the element can be read, the value is editable for the element and converts to the property's type) gets wouldChange: oldValue is the element's value now as GetPropertyValuesOfElements gives it (left out when the property is not available or not evaluated for the element), newValue the value that would be written in the same format (left out for valueStatus Default). Archicad can still refuse a value that passes them.

set_property_values_of_elements_dry_run

set_property_values_of_elements_dry_run(
    element_property_values: list[ElementPropertyValue],
) -> SetPropertyValuesOfElementsResult

Preview this command without applying its changes. Sets the property values of elements. It works for subelements of hierarchal elements also. With valueStatus an element's value can also be reset to the default value of the property (Default) or made undefined (UserUndefined, from 1.8.1). With dryRun true nothing is changed and no undo step is created: the response has dryRun set to true, and each item that passes the checks made before writing gets wouldChange, with the element's value now (oldValue) and the value a real run would write (newValue), both as GetPropertyValuesOfElements gives them.

Parameters:

  • element_property_values (list[ElementPropertyValue]) –

    A single real value accepts '.' or ',' as the decimal separator, so the value strings GetPropertyValuesOfElements returns can be written back: when both appear the last one is the decimal separator, a separator that appears more than once groups thousands, and a single separator is the decimal one. Unitless real and integer lists accept semicolon-separated numbers; an empty string sets an empty list. Invalid items reject the entire property write.

Returns:

update_property_definitions

update_property_definitions(
    property_definitions: list[PropertyDefinitionUpdate],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Updates existing Custom Property Definitions in place, keeping their guid: name, description, group, default value or expressions, availability, and enum options (add, rename, remove, reorder).

Parameters:

  • property_definitions (list[PropertyDefinitionUpdate]) –

    The property definitions to update. Only the fields given change; the definition keeps its guid, so element values survive.

Returns:

update_property_groups

update_property_groups(
    property_groups: list[PropertyGroupUpdate],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Updates the name and/or description of existing Custom Property Groups, keeping their guid.

Parameters:

  • property_groups (list[PropertyGroupUpdate]) –

    The custom property groups to update. Only the fields given change.

Returns:

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