Property¶
Read property definitions, groups, availability and values, and write element property values.
Access this group through api.official.property.
Commands¶
No commands match. Try another name or clear the filter.
For exceptions shared by Unified API commands, see error handling.
get_all_property_group_ids ¶
get_all_property_group_ids(
property_type: None | PropertyType = None,
) -> list[PropertyGroupIdArrayItem]
Returns the identifier of every property group in the current plan. The optional propertyType parameter can be used to filter the results based on the type of the property group (Built-in or User Defined).
Parameters:
-
property_type(None | PropertyType, default:None) –
Returns:
-
list[PropertyGroupIdArrayItem]–A list of property group identifiers.
get_all_property_ids ¶
get_all_property_ids(
property_type: None | PropertyType = None,
) -> list[PropertyIdArrayItem]
Returns the identifier of every property in the current plan. The optional propertyType parameter can be used to filter the results based on the type of the property (Built-in or User Defined).
Parameters:
-
property_type(None | PropertyType, default:None) –
Returns:
-
list[PropertyIdArrayItem]–A list of property identifiers.
get_all_property_ids_of_elements ¶
get_all_property_ids_of_elements(
elements: list[ElementIdArrayItem],
property_type: None | PropertyType = None,
) -> list[ErrorItem | PropertyIdsOfElementWrapperItem]
Returns all property identifiers of the given elements. The optional propertyType parameter can be used to filter the results based on the type of the property (Built-in or User Defined).
Parameters:
-
elements(list[ElementIdArrayItem]) –A list of elements.
-
property_type(None | PropertyType, default:None) –
Returns:
-
list[ErrorItem | PropertyIdsOfElementWrapperItem]–A list of property identifiers of elements or errors.
get_all_property_names ¶
get_all_property_names() -> list[
BuiltInPropertyUserId | UserDefinedPropertyUserId
]
Returns the human-readable names of available Property definitions for debug and development purposes.
Returns:
-
list[BuiltInPropertyUserId | UserDefinedPropertyUserId]–A list of PropertyUserId objects.
get_details_of_properties ¶
get_details_of_properties(
properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | PropertyDefinitionWrapperItem]
Returns the details of property definitions.
Parameters:
-
properties(list[PropertyIdArrayItem]) –A list of property identifiers.
Returns:
-
list[ErrorItem | PropertyDefinitionWrapperItem]–A list of property definitions or errors.
get_property_definition_availability ¶
get_property_definition_availability(
property_ids: list[PropertyIdArrayItem],
) -> list[
ErrorItem | PropertyDefinitionAvailabilityWrapperItem
]
Returns the ids of classification items a given property definition is available for.
Parameters:
-
property_ids(list[PropertyIdArrayItem]) –A list of property identifiers.
Returns:
-
list[ErrorItem | PropertyDefinitionAvailabilityWrapperItem]–A list of classification item avalabilities.
get_property_groups ¶
get_property_groups(
property_group_ids: list[PropertyGroupIdArrayItem],
) -> list[ErrorItem | PropertyGroupWrapperItem]
Returns the details of property groups.
Parameters:
-
property_group_ids(list[PropertyGroupIdArrayItem]) –A list of property group identifiers.
Returns:
-
list[ErrorItem | PropertyGroupWrapperItem]–A list of property groups or errors.
get_property_ids ¶
get_property_ids(
properties: list[
BuiltInPropertyUserId | UserDefinedPropertyUserId
],
) -> list[ErrorItem | PropertyIdArrayItem]
Returns the identifiers of property definitions for the requested property names.
Parameters:
-
properties(list[BuiltInPropertyUserId | UserDefinedPropertyUserId]) –List of property names whose ids are requested.
Returns:
-
list[ErrorItem | PropertyIdArrayItem]–List of the ids of the requested properties. Order of the ids are the same as in the input. Existing properties are represented by propertyId objects, non-existing properties are represented by error objects.
get_property_values_of_elements ¶
get_property_values_of_elements(
elements: list[ElementIdArrayItem],
properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | PropertyValuesWrapperItem]
Returns the property values of the elements for the given property.
Parameters:
-
elements(list[ElementIdArrayItem]) –A list of elements.
-
properties(list[PropertyIdArrayItem]) –A list of property identifiers.
Returns:
-
list[ErrorItem | PropertyValuesWrapperItem]–List of property value lists. The order of the outer list is that of the given elements. The order of the inner lists are that of the given properties.
set_property_values_of_elements ¶
set_property_values_of_elements(
element_property_values: list[ElementPropertyValue],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Sets the property values of elements.
Parameters:
-
element_property_values(list[ElementPropertyValue]) –A list of element property values.
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.
GetAllPropertyGroupIdsParametersGetAllPropertyGroupIdsResultGetAllPropertyIdsOfElementsParametersGetAllPropertyIdsOfElementsResultGetAllPropertyIdsParametersGetAllPropertyIdsResultGetAllPropertyNamesResultGetDetailsOfPropertiesParametersGetDetailsOfPropertiesResultGetPropertyDefinitionAvailabilityParametersGetPropertyDefinitionAvailabilityResultGetPropertyGroupsParametersGetPropertyGroupsResultGetPropertyIdsParametersGetPropertyIdsResultGetPropertyValuesOfElementsParametersGetPropertyValuesOfElementsResultSetPropertyValuesOfElementsParametersSetPropertyValuesOfElementsResultBuiltInPropertyUserIdElementIdArrayItemElementPropertyValueErrorItemFailedExecutionResultPropertyDefinitionAvailabilityWrapperItemPropertyDefinitionWrapperItemPropertyGroupIdArrayItemPropertyGroupWrapperItemPropertyIdArrayItemPropertyIdsOfElementWrapperItemPropertyTypePropertyValuesWrapperItemSuccessfulExecutionResultUserDefinedPropertyUserId