Skip to content

Design Options

Read and manage design options, sets and combinations, and assign elements and views to them.

Access this group through api.tapir.design_options.

Commands

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

activate_design_options_in_combinations

activate_design_options_in_combinations(
    design_options_to_activate: list[
        DesignOptionActivation
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Activates one design option in each of the given combinations, without listing all active design options of the combination. Available from Archicad 29.

Parameters:

  • design_options_to_activate (list[DesignOptionActivation]) –

    The design options to activate, each in the given combination.

Returns:

can_move_elements_to_design_options

can_move_elements_to_design_options(
    elements: list[ElementIdArrayItem],
) -> list[DesignOptionMoveCapability]

Checks whether the given elements can be moved to another design option or to the main model, with the reason when they cannot. Available from Archicad 29.

Parameters:

Returns:

create_design_option_combinations

create_design_option_combinations(
    design_option_combinations: list[
        DesignOptionCombinationData
    ],
) -> list[DesignOptionCombinationIdArrayItem | ErrorItem]

Creates new design option combinations with the given parameters. Available from Archicad 29.

Parameters:

Returns:

create_design_option_sets

create_design_option_sets(
    design_option_sets: list[str],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Creates new design option sets with the given names. Available from Archicad 29.

Parameters:

  • design_option_sets (list[str]) –

Returns:

create_design_options

create_design_options(
    design_options: list[DesignOptionData],
) -> list[DesignOptionIdArrayItem | ErrorItem]

Creates new design options with the given parameters. Available from Archicad 29.

Parameters:

Returns:

deactivate_design_options_in_combinations

deactivate_design_options_in_combinations(
    deactivated_design_options_in_combinations: list[
        DesignOptionDeactivation
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Turns off the given design options in the given combinations, leaving their other options as they are. Available from Archicad 29.

Parameters:

Returns:

delete_design_option_combinations

delete_design_option_combinations(
    design_option_combinations: list[
        DesignOptionCombinationIdArrayItem
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes the given design option combinations. Available from Archicad 29.

Parameters:

Returns:

delete_design_option_sets

delete_design_option_sets(
    design_option_sets: list[DesignOptionSetIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes the given design option sets. A set with an option that still holds elements is not deleted (its result is an error naming them, because Archicad would open a modal dialog): move them to the main model or another option with MoveElementsToDesignOptions first. Available from Archicad 29.

Parameters:

Returns:

delete_design_options

delete_design_options(
    design_options: list[DesignOptionIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes the given design options. An option that still holds elements is not deleted (its result is an error naming them, because Archicad would open a modal dialog): move them to the main model or another option with MoveElementsToDesignOptions first. Available from Archicad 29.

Parameters:

Returns:

duplicate_design_option_combinations

duplicate_design_option_combinations(
    design_option_combinations: list[
        DesignOptionCombinationIdArrayItem
    ],
) -> list[DesignOptionCombinationIdArrayItem | ErrorItem]

Duplicates the given design option combinations and returns the identifiers of the new combinations. Available from Archicad 29.

Parameters:

Returns:

get_default_design_option

get_default_design_option() -> GetDefaultDesignOptionResult

Retrieves which design option, or the Main Model, is the default that new elements go to. The Archicad API has no function for it, so in a project with design options the command creates a temporary slab in the floor plan, reads its design option, moves it to the Main Model and deletes it (without design options the answer is the Main Model and nothing is created). Archicad puts a new element into the default design option only when the undo step that created it ends, so this takes two undo steps, creating and removing the slab, which together leave the project as it was. Needs a window where design options can be edited. Available from Archicad 29.

Returns:

get_design_option_combination_of_views

get_design_option_combination_of_views(
    navigator_item_ids: list[NavigatorItemIdArrayItem],
) -> list[ErrorItem | ViewDesignOptionCombination]

Retrieves which design option combination the given views show: only the main model, a combination, a custom set of design options or a deleted combination. Available from Archicad 27.

Parameters:

Returns:

get_design_option_combinations

get_design_option_combinations() -> list[
    DesignOptionCombinationDetails
]

Retrieves information about existing design option combinations.

Returns:

get_design_option_for_elements

get_design_option_for_elements(
    elements: list[ElementIdArrayItem],
) -> list[DesignOptionForElement]

Retrieves the design option association for the specified elements. Available from Archicad 29.

Parameters:

Returns:

get_design_option_sets

get_design_option_sets() -> GetDesignOptionSetsResult

Retrieves information about existing design option sets, and in Teamwork projects the Teamwork identifier of the design options. Available from Archicad 29.

Returns:

get_design_options

get_design_options() -> list[DesignOptionDetails]

Retrieves information about existing design options. Available from Archicad 29.

Returns:

get_elements_of_design_options

get_elements_of_design_options(
    design_options: list[DesignOptionIdArrayItem],
) -> list[ElementsOfDesignOption | ErrorItem]

Retrieves the elements associated with the given design options. Available from Archicad 29.

Parameters:

Returns:

get_hotlink_design_option_table_details(
    hotlink_nodes: list[HotlinkNodeReference],
) -> list[ErrorItem | HotlinkDesignOptionTableDetails]

Reads the design option table of hotlink nodes: the design option sets, options and combinations of the hotlinked source file, and which of them the node shows. Available from Archicad 29.

Parameters:

  • hotlink_nodes (list[HotlinkNodeReference]) –

    The hotlink nodes, from GetHotlinks or CreateHotlinkNodes.

Returns:

get_hotlink_design_option_tables(
    hotlinks: list[
        HotlinkDesignOptionsByElement
        | HotlinkDesignOptionsByNode
    ],
) -> list[ErrorItem | HotlinkDesignOptionTable]

Retrieves the design option table of the given hotlink nodes and placed hotlink instances: the filter mode (main model only, by options or by combination), the design option sets, options and combinations of the hotlinked module and which of them are active. Available from Archicad 29.

Parameters:

Returns:

move_design_options_to_another_set

move_design_options_to_another_set(
    design_option_and_set_pairs: list[
        DesignOptionAndSetPair
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Moves the given design options to another sets. Available from Archicad 29.

Parameters:

Returns:

move_elements_to_design_options

move_elements_to_design_options(
    element_design_option_pairs: list[
        ElementDesignOptionPair
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Moves the given elements into the given design options. Use NULLGuid for design option to remove the element from any design options and move it to the main model. Available from Archicad 29.

Parameters:

Returns:

rename_design_option_combinations

rename_design_option_combinations(
    design_option_combinations: list[
        DesignOptionCombinationRename
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the name of the given design option combinations. Available from Archicad 29.

Parameters:

Returns:

rename_design_option_sets

rename_design_option_sets(
    design_option_sets: list[DesignOptionSetRename],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the name of the given design option sets. Available from Archicad 29.

Parameters:

  • design_option_sets (list[DesignOptionSetRename]) –

    The design option sets to rename, each with the new name.

Returns:

rename_design_options

rename_design_options(
    design_options: list[DesignOptionRename],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the name and/or the string id of the given design options. Available from Archicad 29.

Parameters:

  • design_options (list[DesignOptionRename]) –

    The design options to rename, each with the new name and/or id. At least one of them must be given.

Returns:

reorder_design_option_sets

reorder_design_option_sets(
    design_option_sets: list[DesignOptionSetMove],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Moves the given design option sets before another set or to the end of the list. Available from Archicad 29.

Parameters:

  • design_option_sets (list[DesignOptionSetMove]) –

    The design option sets to move, in the order the moves are done.

Returns:

reorder_design_options_in_set

reorder_design_options_in_set(
    design_options: list[DesignOptionMove],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Moves the given design options before another design option of the same set or to the end of their set. Available from Archicad 29.

Parameters:

  • design_options (list[DesignOptionMove]) –

    The design options to move, in the order the moves are done.

Returns:

set_active_design_options_in_combinations

set_active_design_options_in_combinations(
    active_design_options_in_combinations: list[
        ActiveDesignOptionsInCombination
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets active design options in the given combinations. Available from Archicad 29.

Parameters:

Returns:

set_default_design_option

set_default_design_option(
    design_option_id: DesignOptionId | None = None,
) -> SuccessfulExecutionResult

Sets the given design option as the default, or the Main Model when no design option is given. Available from Archicad 29.

Parameters:

  • design_option_id (DesignOptionId | None, default: None ) –

    The design option to set as the default. When it is not given, the Main Model becomes the default.

Returns:

set_design_option_combination_of_views

set_design_option_combination_of_views(
    navigator_item_ids_with_combination: list[
        NavigatorItemIdsWithCombinationItem
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the design option combination the given views show, or makes them show only the main model. Available from Archicad 27.

Parameters:

  • navigator_item_ids_with_combination (list[NavigatorItemIdsWithCombinationItem]) –

    The views (View Map navigator items), each with either a 'designOptionCombinationId' or 'mainModelOnly': true.

Returns:

set_hotlink_design_option_tables(
    hotlink_instances: list[HotlinkDesignOptionTableUpdate],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the filter mode, the active combination and the active option of sets in the design option table of the given placed hotlink instances. Available from Archicad 29.

Parameters:

  • hotlink_instances (list[HotlinkDesignOptionTableUpdate]) –

    The placed hotlink instances to change the design option table of. Every field but elementId is optional; what is omitted keeps its current value. The changes are applied in the order filterMode, activeDesignOptionCombination, activeDesignOptions.

Returns:

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