Skip to content

Navigator

Read and manage Navigator items, drawings and views, including their display, projection and view settings.

Access this group through api.tapir.navigator.

Commands

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

change_3d_styles

change_3d_styles(
    styles: list[Style3DDetails],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the given fields of existing 3D styles, identified by name. Available from Archicad 27.

Parameters:

  • styles (list[Style3DDetails]) –

    The 3D styles to change, identified by their name. Only the given fields change.

Returns:

change_add_on_viewpoints

change_add_on_viewpoints(
    viewpoints: list[AddOnViewpointModificationData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the ID, name, view settings flags or attached data (base64 encoded) of the given add-on viewpoint items; only the given fields are changed. Roots and groups can't be changed in a Teamwork project. Available from Archicad 27.

Parameters:

Returns:

change_drawing_link(
    drawings_with_new_links: list[DrawingsWithNewLink],
) -> list[ElementIdArrayItem | ErrorItem]

Relinks a Drawing to a different source navigator item. Archicad has no in-place relink API, so this recreates the Drawing against the new source and deletes the original - the returned elementId is a NEW guid, not the input one. The Drawing Title marker's own position is not preserved (undocumented Archicad limitation). The new Drawing gets the old one's update type (Manual or Automatic). The new source view is made current before the Drawing is created (Archicad 27 or later), and the window and story that were active when the command started are restored afterwards; the view settings (zoom, layers, scale) shown in that window are not restored.

Parameters:

Returns:

  • list[ElementIdArrayItem | ErrorItem] –

    One result per input item. On success, elementId is the NEW Drawing's identifier - relinking necessarily replaces the element, it cannot keep the original guid.

change_layout_subset_settings

change_layout_subset_settings(
    subsets: list[LayoutSubsetSettingsChange],
) -> list[ChangedLayoutSubset | ErrorItem]

Changes the settings of existing Layout Book subsets (name, ID prefix, numbering style, start at, ...), the fields of CreateLayoutSubset; the ones not given keep their value. The Archicad API can neither change the settings of a subset nor delete one, so a new subset is created with the changed settings right after the old one, and the old one's layouts and subsets are moved into it in their order; when a move fails, the ones moved before are moved back. The old subset is left empty, and its id is returned with the new one's: delete it in Archicad. These navigator functions are not undoable.

Parameters:

Returns:

  • list[ChangedLayoutSubset | ErrorItem] –

    One item per input subset, in the same order: the subset that now has the settings and the layouts, and the old subset, left empty, or an error.

clone_project_map_item_to_view_map

clone_project_map_item_to_view_map(
    views_data: list[ViewCloneData],
) -> list[ErrorItem | NavigatorItemIdArrayItem]

Clones Project Map viewpoints into a specified View Map folder.

Parameters:

  • views_data (list[ViewCloneData]) –

    Array of views to clone from the Project Map to the View Map.

Returns:

create_3d_documents

create_3d_documents(
    documents_data: list[Document3DData],
) -> list[CreatedDatabase | ErrorItem]

Creates 3D Documents with the given names and reference IDs, in the Project Map's 3D Documents folder. Archicad gives each its starting settings; Get3DDocumentSettings reads them and Set3DDocumentSettings changes its view, cut and filter. Returns the databaseId and the Project Map navigatorItemId of each new 3D Document.

Parameters:

  • documents_data (list[Document3DData]) –

    One item per new 3D Document.

Returns:

create_3d_styles

create_3d_styles(
    styles: list[Style3DDetails],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Creates 3D styles. Each new style starts from the current 3D style and differs from it only in the given fields. Available from Archicad 27.

Parameters:

  • styles (list[Style3DDetails]) –

    The 3D styles to create. Each starts from the current 3D style; only the given fields differ from it.

Returns:

create_add_on_viewpoints

create_add_on_viewpoints(
    viewpoints: list[AddOnViewpointData],
) -> list[AddOnViewpointIdArrayItem | ErrorItem]

Creates add-on viewpoint roots, groups and leaf nodes in the Project Map, with their ID, name, view settings flags (leaf nodes only) and attached data (base64 encoded). A group or a leaf node is created in the given parent root or group. Returns the identifier of each new item, or an error for an item that could not be created. Roots and groups can't be created in a Teamwork project. Available from Archicad 27.

Parameters:

  • viewpoints (list[AddOnViewpointData]) –

    The add-on viewpoint items to create. The identifier of a new root or group is only known from the response, so create the parents in an earlier call.

Returns:

create_camera_sets

create_camera_sets(
    camera_sets: list[CameraSetData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates empty Camera Sets (camera paths) with the given names, and makes one the active Camera Set when isActive is true. Returns their element ids, which GetCameras lists as cameraSetElementId. Delete them with DeleteElements.

Parameters:

  • camera_sets (list[CameraSetData]) –

    The Camera Sets (camera paths) to create, each empty: cameras are added to them later.

Returns:

  • list[ElementIdArrayItem | ErrorItem] –

    The element ids of the new Camera Sets, in the order of the input, or an error for each one that could not be created. GetCameras lists them as cameraSetElementId.

create_cameras

create_cameras(
    cameras: list[CameraData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates perspective cameras, each added at the end of the path of the given Camera Set, from the camera and target positions (with their heights) and optionally the view cone, roll angle, two-point perspective, sun (by angles or by date and time) and pen; the rest comes from the Camera tool defaults. Returns their element ids, which GetCameras lists. Delete them with DeleteElements.

Parameters:

  • cameras (list[CameraData]) –

    The perspective cameras to create. Each is added at the end of the path of its Camera Set, in the order of this list. The values not given come from the Camera tool defaults.

Returns:

  • list[ElementIdArrayItem | ErrorItem] –

    The element ids of the new cameras, in the order of the input, or an error for each one that could not be created. GetCameras lists them as cameraElementId.

create_detail_markers

create_detail_markers(
    detail_markers_data: list[DetailMarkerData],
) -> list[ElementIdArrayItem | ErrorItem]

Places Detail markers with their clip polygon in the current floor plan, section or elevation, each with a new Detail viewpoint, like the Detail tool. GetDetailsOfElements reads them back.

Parameters:

Returns:

create_details

create_details(
    details_data: list[DetailData],
) -> list[CreatedDatabase | ErrorItem]

Creates independent Detail databases. Returns the databaseId and the Project Map navigatorItemId of each new detail.

Parameters:

Returns:

create_drawings

create_drawings(
    drawings_data: list[DrawingData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates Drawing elements on the specified or active layout from navigator items.

Parameters:

Returns:

create_elevations

create_elevations(
    elevations_data: list[ElevationData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates Elevation elements on the floor plan. The floor plan must be the active window: creation fails while a Section or Elevation window is active.

Parameters:

Returns:

create_interior_elevations

create_interior_elevations(
    interior_elevations_data: list[InteriorElevationData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates Interior Elevation elements on the floor plan. Every consecutive pair of the given points becomes one segment, each with its own viewpoint - feed it the corner points of a room to get an interior elevation of that room.

Parameters:

  • interior_elevations_data (list[InteriorElevationData]) –

    Array of data to create Interior Elevation elements.

Returns:

create_layout

create_layout(
    layouts_data: list[LayoutData],
) -> list[
    CreatedLayoutWithPlacementError
    | DatabaseIdArrayItem
    | ErrorItem
]

Creates Layouts and their backing master layouts. Archicad inserts a new layout at the first place of its subset, renumbering the sheets after it; previousNavigatorItemId or position 'last' places it after an existing sheet or at the end instead. A custom layout number does not leave the layout out of the numbering; layoutParameters.doNotIncludeInNumbering does. A layout that was created but could not be placed is returned with both its databaseId and the error.

Parameters:

Returns:

create_layout_subset

create_layout_subset(
    subsets_data: list[SubsetData],
) -> list[ErrorItem | NavigatorItemIdArrayItem]

Creates Layout Book subsets.

Parameters:

Returns:

create_sections

create_sections(
    sections_data: list[SectionData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates Section elements on the floor plan, from any window. A section line is straight (startCoordinate, endCoordinate) or staggered (mainCoordinates, an even number of points, more than two, with right-angled breaks). A section looks to the left of its first segment, with its depth line that far on that side. GetDetailsOfElements reads the geometry of existing sections back.

Parameters:

Returns:

create_view_map_folder

create_view_map_folder(
    folder_name: str,
    parent_navigator_item_id: NavigatorItemId | None = None,
) -> NavigatorItemId

Creates a new folder in the View Map.

Parameters:

  • folder_name (str) –

    Name of the new folder to create in the View Map.

  • parent_navigator_item_id (NavigatorItemId | None, default: None ) –

    Navigator item ID of the parent View Map folder. Optional; defaults to the View Map root.

Returns:

create_views_in_view_map

create_views_in_view_map(
    views_data: list[ViewData],
) -> list[ErrorItem | NavigatorItemIdArrayItem]

Creates independent (non-clone) navigator views in a specified View Map folder, by copying database and settings from source items.

Parameters:

  • views_data (list[ViewData]) –

    Array of views to create as independent (non-clone): items in the View Map.

Returns:

create_worksheet_markers

create_worksheet_markers(
    worksheet_markers_data: list[WorksheetMarkerData],
) -> list[ElementIdArrayItem | ErrorItem]

Places Worksheet markers with their clip polygon in the current floor plan, section or elevation, each with a new Worksheet viewpoint, like the Worksheet tool. GetDetailsOfElements reads them back.

Parameters:

Returns:

create_worksheets

create_worksheets(
    worksheets_data: list[WorksheetData],
) -> list[CreatedDatabase | ErrorItem]

Creates independent Worksheet databases. Returns the databaseId and the Project Map navigatorItemId of each new worksheet.

Parameters:

Returns:

delete_navigator_items

delete_navigator_items(
    navigator_item_ids: list[NavigatorItemIdArrayItem],
    *,
    dry_run: None | bool = None,
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Deletes navigator items from the navigator tree: views and folders of the View Map, layouts and master layouts of the Layout Book, and independent worksheets and details of the Project Map. Layout subsets, View Map folders that are not empty, the other Project Map items and marker-linked worksheets and details cannot be deleted; the failed execution result says which case applies. An item that Archicad refuses to delete (in a Teamwork project: it is not reserved or the user has no right to delete it) is reported as a failed execution result. dryRun reports the result of the checks made before deleting (item not found, layout subset, View Map folder that is not empty) without deleting anything.

Parameters:

  • navigator_item_ids (list[NavigatorItemIdArrayItem]) –

    A list of navigator item identifiers.

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

    If true, nothing is deleted: each execution result says what the deletion would do for that item, from the checks made before deleting (corrupt id, item not found, layout subset, View Map folder that is not empty). Archicad can still refuse an item that passes them: a Project Map item other than an independent worksheet, detail or viewpoint created by the Tapir Add-On, a marker-linked worksheet or detail, or in a Teamwork project an item that is not reserved. Default is false.

Returns:

find_model_view_option

find_model_view_option(
    parameters: ModelViewOptionById | ModelViewOptionByName,
) -> FindModelViewOptionResult

Finds a model view option combination by id or by name and returns its index, id, name and flags. The index is the one SetViewOptions takes to switch the model view options of a window to the combination. Available from Archicad 27.

Parameters:

Returns:

fit_in_window

fit_in_window(
    elements: None | list[ElementIdArrayItem] = None,
) -> SuccessfulExecutionResult

Zooms to the given elements or fits everything in the window.

Parameters:

Returns:

get_3d_cut_planes

get_3d_cut_planes() -> Get3DCutPlanesResult

Gets whether the 3D cut planes are on, the cut planes (pa, pb, pc, pd) of the 3D window with the pen and surface of their cut faces, and the custom cut pen and surface, in the form accepted by Set3DCutPlanes.

Returns:

get_3d_document_settings

get_3d_document_settings(
    navigator_item_id: NavigatorItemId,
) -> Document3DSettings

Gets the settings of a 3D Document, given by its navigator item: the element and story filter, the 3D cut, the projection, the window and zoom, the uniform cut and uncut surface attributes, the source and the boundary contours, with the field names of API_DocumentFrom3DType.

Parameters:

  • navigator_item_id (NavigatorItemId) –

    The navigator item of the 3D Document, from the Project Map or the View Map.

Returns:

get_3d_filter_and_cut_settings

get_3d_filter_and_cut_settings() -> None

Gets the 'Filter and Cut Elements in 3D' settings of the 3D window: the stories shown, the filter mode and which element types are shown. Available from Archicad 27.

get_3d_projection_settings

get_3d_projection_settings() -> (
    Get3DProjectionSettingsResult
)

Gets the 3D projection settings of the 3D window: whether it is perspective or axonometric, the camera and target position, view cone, roll angle, distance and azimuth of a perspective, or the projection type, azimuth and transformation matrix of an axonometry, and the sun position of either (date and time or azimuth and altitude).

Returns:

get_3d_style_details

get_3d_style_details(
    names: None | list[str] = None,
) -> list[ErrorItem | Style3DDetails]

Gets the settings of 3D styles by name (an empty name or no names means the current 3D style): rendering engine, model type, monochrome and background colors, contours, shadows and hatching. Available from Archicad 27.

Parameters:

  • names (None | list[str], default: None ) –

    The names of the 3D styles. An empty name means the current 3D style. When omitted, the current 3D style is returned.

Returns:

get_3d_styles

get_3d_styles() -> Get3DStylesResult

Gets the names of the 3D styles of the project and the name of the current one, which the 3D window uses.

Returns:

get_3d_window_settings

get_3d_window_settings() -> Get3DWindowSettingsResult

Gets the 3D window settings: the pixel size of the 3D window and the zoom (scale and displacement) of its projection.

Returns:

get_active_graphical_override_combination

get_active_graphical_override_combination() -> (
    GetActiveGraphicalOverrideCombinationResult
)

Gets the graphic override combination applied to the current window, with its id and name. The response is empty when no combination is applied. This is the combination of the window itself, not the one stored in a saved view (see GetViewSettings). Available from Archicad 30.

Returns:

get_add_on_viewpoint_children

get_add_on_viewpoint_children(
    viewpoint_id: AddOnViewpointId,
) -> list[AddOnViewpointIdArrayItem]

Returns the direct children of an add-on viewpoint root or group. Available from Archicad 27.

Parameters:

  • viewpoint_id (AddOnViewpointId) –

    The add-on viewpoint root or group to list the children of.

Returns:

get_add_on_viewpoint_roots

get_add_on_viewpoint_roots() -> list[
    AddOnViewpointIdArrayItem
]

Returns the roots of the add-on viewpoints: the Project Map items created through the Archicad API by an add-on, as Archicad lists them to Tapir. Available from Archicad 27.

Returns:

get_add_on_viewpoints

get_add_on_viewpoints(
    viewpoint_ids: list[AddOnViewpointIdArrayItem],
) -> list[AddOnViewpointDetails | ErrorItem]

Returns the details of the given add-on viewpoint items: their parent, type (Root, Group or Leaf), ID, name, view settings flags and attached data (base64 encoded). The output is aligned with the input array; an item that cannot be read gets an error. Available from Archicad 27.

Parameters:

Returns:

  • list[AddOnViewpointDetails | ErrorItem] –

    The details of each given add-on viewpoint item, in the order of the input, or an error for an item that cannot be read.

get_cameras

get_cameras() -> list[CameraSet]

Gets the Camera Sets (camera paths) of the project with their name, whether the set is the active one, its current camera, and its cameras in path order. Each camera has its element id, whether it is active in the path, its pen, and its perspective: camera and target position, distance, azimuth, view cone, roll angle, two-point perspective and sun, in the shape Set3DProjectionSettings accepts, so passing a camera's perspective there shows its view in the 3D window. Archicad cameras are always perspective; they have no name of their own.

Returns:

  • list[CameraSet] –

    The Camera Sets (camera paths) of the project, each with its cameras.

get_database_id_from_navigator_item_id

get_database_id_from_navigator_item_id(
    navigator_item_ids: list[NavigatorItemIdArrayItem],
) -> list[DatabaseIdArrayItem]

Gets the ID of the database associated with the supplied navigator item id

Parameters:

Returns:

get_databases

get_databases(
    types: None | list[DatabaseType] = None,
) -> list[DatabaseDetails]

Lists every database of the given types (sections, elevations, interior elevations, details, worksheets, 3D documents, layouts, master layouts) with its database ID, name and reference ID, without walking the navigator trees.

Parameters:

  • types (None | list[DatabaseType], default: None ) –

    The types of the databases to list. Optional, by default the databases of every type are listed.

Returns:

get_document_from_3d_defaults

get_document_from_3d_defaults() -> (
    GetDocumentFrom3DDefaultsResult
)

Gets the defaults a newly created 3D Document starts with: name, reference ID, vectorial hatching and sun shadows, transparency, connection to the model, surfaces, boundary contours and the uniform cut, uncut, shadow and hidden edge attributes.

Returns:

get_drawing_content_boxes

get_drawing_content_boxes(
    elements: list[ElementIdArrayItem],
) -> list[DrawingContentBox | ErrorItem]

Returns the full content box of the given Drawing elements, independent of their frames, as ACAPI_Drawing_GetFullDrawingContentBox reports it. Available from Archicad 27.

Parameters:

Returns:

  • list[DrawingContentBox | ErrorItem] –

    One item per input element, in the same order: the full content box of the Drawing, or an error.

get_drawing_numbering_grid_lines

get_drawing_numbering_grid_lines() -> list[
    DrawingNumberingGridLine
]

Gets the lines of the grid of the grid-based drawing numbering of the current layout (start and end point, pen index, line type index), for example to find which grid cell a drawing on the layout sits in. The current window must be a layout (see ChangeWindow), and only a layout that uses grid-based drawing numbering has such a grid.

Returns:

  • list[DrawingNumberingGridLine] –

    The lines of the grid of the grid-based drawing numbering of the current layout. Only a layout that uses grid-based drawing numbering has such a grid.

get_ghost_story_settings

get_ghost_story_settings() -> GetGhostStorySettingsResult

Gets the Trace & Reference ghost story settings of the floor plan: whether it is on, whether one story, the story above or the one below is shown, which story, its color and the element types shown in it.

Returns:

get_grid_settings

get_grid_settings() -> None

Gets the grid and snap grid settings of the database of the current window, and which database that is. Each database has its own grid settings. Available from Archicad 27.

get_layout_custom_scheme

get_layout_custom_scheme() -> list[CustomSchemeItem]

Gets the Layout Info Panel custom field definitions (name and key) from Book Settings.

Returns:

get_layout_settings

get_layout_settings(
    layout_database_ids: list[LayoutDatabaseId],
) -> list[LayoutSetting]

Gets settings of layouts, including their master layout and Layout Info Panel custom data fields.

Parameters:

Returns:

get_layout_subset_settings

get_layout_subset_settings(
    navigator_item_ids: list[NavigatorItemIdArrayItem],
) -> list[ErrorItem | LayoutSubsetSettings]

Gets the settings of existing Layout Book subsets: the same fields CreateLayoutSubset accepts (name, ID prefix, numbering style, ...).

Parameters:

Returns:

  • list[ErrorItem | LayoutSubsetSettings] –

    One item per input navigator item, in the same order: the subset's settings with the field names of CreateLayoutSubset, or an error.

get_model_view_option_details

get_model_view_option_details(
    model_view_options: None
    | list[ModelViewOptionDetailsSelector] = None,
) -> list[ErrorItem | ModelViewOptionDetails]

Gets the settings stored in model view option combinations (Document > Model View > Model View Options), all of them or the ones given by id or by name: the model view options in the fields of GetViewOptions, and the options library parts add to the combination (gdlOptions) with their GDL parameter values. Read-only: the Archicad API has no function to change, rename or create a stored combination; SetViewOptions changes the options of the current window. Available from Archicad 27.

Parameters:

  • model_view_options (None | list[ModelViewOptionDetailsSelector], default: None ) –

    The model view option combinations to read, each given by id or by name. When omitted, every combination of the project is returned.

Returns:

  • list[ErrorItem | ModelViewOptionDetails] –

    The settings of each model view option combination, in the order of the input, or in the order of the project when no input is given.

get_model_view_options

get_model_view_options() -> list[ModelViewOption]

Gets all model view options

Returns:

get_navigator_item_tree

get_navigator_item_tree(
    navigator_map_id: NavigatorMapId,
    publisher_set_name: None | str = None,
    include_child_count: None | bool = None,
) -> NavigatorItem

Returns the full navigator item tree for the specified map. With includeChildCount true every item also reports the number of its direct children.

Parameters:

  • navigator_map_id (NavigatorMapId) –

    The navigator map to retrieve.

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

    The name of the publisher set to retrieve. Used only when navigatorMapId is PublisherSets. Without it the first publisher set is returned.

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

    Set to true to add childCount, the number of direct children Archicad reports, to every item. Defaults to false.

Returns:

get_navigator_parent_items

get_navigator_parent_items(
    navigator_item_ids: list[NavigatorItemIdArrayItem],
) -> list[ErrorItem | NavigatorParentItem]

Returns the parent of each given navigator item: the folder, subset or layout book item it is in. The root of a map has no parent and gets an error.

Parameters:

Returns:

  • list[ErrorItem | NavigatorParentItem] –

    The parent of each requested navigator item, in the order of the input, or an error for an item whose parent cannot be read.

get_publisher_sets

get_publisher_sets() -> list[PublisherSet]

Returns the publisher sets of the project with their saved output: the local or LAN path, the Teamwork file server path, or the Internet host and directory name.

Returns:

  • list[PublisherSet] –

    The publisher sets of the project, in the order of the Publisher Sets map.

get_renovation_filters

get_renovation_filters() -> GetRenovationFiltersResult

Gets the renovation filters of the project, and the one the current window uses (Document > Renovation > Renovation Filter). A renovationFilterId has the same shape as the renovationFilterGuid of GetViewSettings and SetViewSettings, so a filter listed here can be set on saved views too.

Returns:

get_schedules

get_schedules() -> list[ScheduleSummary]

Returns the Interactive Schedules of the Project Map: navigator item id, name, ID and the folders they are in. Archicad's API does not give the rows of a schedule nor export it; to export one, put it in a publisher set with a spreadsheet format in Archicad and run PublishPublisherSet.

Returns:

  • list[ScheduleSummary] –

    The Interactive Schedules of the Project Map, in navigator order.

get_sections_and_elevations_details

get_sections_and_elevations_details(
    elements: list[ElementIdArrayItem],
) -> list[ErrorItem | SectionElevationDetails]

Gets every configurable setting of the given Section and Elevation elements, with their name and reference ID.

Parameters:

Returns:

get_structure_display

get_structure_display() -> GetStructureDisplayResult

Gets the Partial Structure Display (EntireStructure, CoreOnly, WithoutFinishes or StructureOnly) of the current window, and whether it is the 3D window. This is the setting of the window itself, not the one stored in a saved view (see GetViewSettings). Available from Archicad 27.

Returns:

get_view_2d_transformations

get_view_2d_transformations(
    navigator_item_ids: None
    | list[NavigatorItemIdArrayItem] = None,
    databases: None | list[DatabaseIdArrayItem] = None,
) -> list[ErrorItem | ViewTransformations]

Get zoom and rotation of 2D views

Parameters:

Returns:

get_view_options

get_view_options() -> GetViewOptionsResult

Gets the model view options and on-screen view options of the current plan window, and the index and name of the model view option combination it applies.

Returns:

get_view_settings

get_view_settings(
    navigator_item_ids: list[NavigatorItemIdArrayItem],
) -> list[ErrorItem | ViewSettings]

Gets the view settings of navigator items, including a view's own (custom) layer states

Parameters:

Returns:

modify_camera_sets

modify_camera_sets(
    camera_sets: list[CameraSetModificationData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Renames Camera Sets (camera paths) and makes one of them the active Camera Set (isActive true); the set active before is then no longer active. Values not given are kept.

Parameters:

  • camera_sets (list[CameraSetModificationData]) –

    The Camera Sets to change, each with the values to change; the values not given are kept.

Returns:

modify_cameras

modify_cameras(
    cameras: list[CameraModificationData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes perspective cameras: the camera and target positions (with their heights), view cone, roll angle, two-point perspective, sun (by angles or by date and time) and pen. Values not given are kept; each camera keeps its element id, its Camera Set and its place in the path. View cone and roll angle are in the units GetCameras returns them.

Parameters:

  • cameras (list[CameraModificationData]) –

    The perspective cameras to change, each with the values to change; the values not given are kept. A camera keeps its element id, its Camera Set and its place in the path.

Returns:

modify_detail_markers

modify_detail_markers(
    detail_markers_with_details: list[
        DetailMarkersWithDetail
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the name, the reference ID, the clip polygon, the boundary's pen and line type, the marker symbol's angle, always-horizontal setting and pen, and 'Copy construction elements only' of Detail and Worksheet markers. Not written: the base point (Archicad places it at the center of the clip polygon's bounding box when the marker is created), the viewpoint the marker refers to, and the marker symbol's other settings, which are parameters of the library part placed as the marker (markerId in GetDetailsOfElements). A value Archicad did not apply gets a failed execution result.

Parameters:

Returns:

modify_sections

modify_sections(
    sections_with_details: list[SectionsWithDetail],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes the name and the reference ID of Section and Elevation elements, which the Project Map and the markers show, and moves their section line (startCoordinate, endCoordinate) and depth line (depth, only with the horizontal range Limited, which SetSectionsAndElevationsDetails sets). GetDetailsOfElements reads them back as name, idStr, startCoordinate, endCoordinate and depth.

Parameters:

Returns:

move_navigator_item

move_navigator_item(
    navigator_item_id_to_move: NavigatorItemId,
    parent_navigator_item_id: NavigatorItemId,
    previous_navigator_item_id: NavigatorItemId
    | None = None,
) -> SuccessfulExecutionResult

Moves a navigator item to a new parent in the navigator tree, or to a new position within its current parent. Fails when Archicad does not put the item where it was asked to.

Parameters:

  • navigator_item_id_to_move (NavigatorItemId) –
  • parent_navigator_item_id (NavigatorItemId) –

    The new parent of the item. It can be the item's current parent, to change the order of the items in it.

  • previous_navigator_item_id (NavigatorItemId | None, default: None ) –

    Optional child of parentNavigatorItemId that the item is placed right after. Without it an item moved within its own parent goes to the end of it.

Returns:

publish_publisher_set

publish_publisher_set(
    publisher_set_name: str,
    output_path: None | str = None,
    selected_navigator_item_ids: None
    | list[NavigatorItemIdArrayItem] = None,
) -> PublishPublisherSetResult

Performs a publish operation on the currently opened project. Only the given publisher set will be published. The command answers when Archicad's API reports the publishing done; for a local or LAN output folder the answer names the folder and lists the files created or changed in it (writtenFiles). A large set can take minutes, so give the call a long enough timeout. The output format of each item is the one set in the publisher set: Archicad's API cannot choose it per call.

Parameters:

  • publisher_set_name (str) –

    The name of the publisher set.

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

    Full local or LAN path for publishing. Optional, by default the path set in the settings of the publisher set will be used.

  • selected_navigator_item_ids (None | list[NavigatorItemIdArrayItem], default: None ) –

    Optional publisher-tree navigator items to publish instead of the whole publisher set. Each item wraps its id in navigatorItemId, as the items of GetNavigatorItemTree do: [{"navigatorItemId": {"guid": "6E1C3A9B-0F2D-4B8E-9C7A-1D2E3F405162"}}], not [{"guid": "..."}].

Returns:

rename_navigator_item

rename_navigator_item(
    navigator_item_id: NavigatorItemId,
    new_name: None | str = None,
    new_id: None | str = None,
    custom_name: None | bool = None,
) -> SuccessfulExecutionResult

Renames a navigator item or changes its ID. Renaming the Layout Book item of a placed Drawing also sets the custom name of the Drawing. newId sets the custom layout number of a layout and the custom ID of any other item. For a Project Map section, elevation, detail or worksheet the name and ID of the element behind the viewpoint are changed, for an interior elevation those of the segment the item stands for; the change is undone when the item does not show the new name. The name and ID of other Project Map items (stories, schedules, ...) cannot be changed. A publisher set cannot be renamed (Archicad's API only reads publisher sets), so a new name or ID for the root item of a publisher set is refused. Fails when Archicad refuses the change or does not apply the new name or ID. With customName false the item drops its custom name and follows its Project Map source again.

Parameters:

  • navigator_item_id (NavigatorItemId) –
  • new_name (None | str, default: None ) –

    The new name of the item. On the Layout Book item of a placed Drawing it is also set as the custom name of the Drawing (nameType CustomName).

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

    The new ID of the item. On a layout it is the custom layout number (customLayoutNumbering is switched on); on a Project Map section, elevation, interior elevation, detail or worksheet it is the reference ID of the element behind the item; on any other item it is the custom ID of the navigator item (customUiId becomes true).

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

    Set to false to drop the custom name of the item, so that it follows the name of its Project Map source again. Cannot be combined with newName.

Returns:

reorder_navigator_items

reorder_navigator_items(
    parent_navigator_item_id: NavigatorItemId,
    ordered_navigator_item_ids: list[
        NavigatorItemIdArrayItem
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Reorders the children of a navigator item to match the given order. Works around MoveNavigatorItem being unable to reposition an item within its current parent, by bouncing it through a sibling folder, or through the parent's own parent when no sibling can host it (for example a folder with only views and clone folders).

Parameters:

  • parent_navigator_item_id (NavigatorItemId) –

    The folder whose children should be reordered.

  • ordered_navigator_item_ids (list[NavigatorItemIdArrayItem]) –

    The complete, desired order of every child of parentNavigatorItemId. Every current child must be listed.

Returns:

reset_zoom

reset_zoom(
    number_of_steps_back: None | int = None,
) -> SuccessfulExecutionResult

Steps back in the zoom history of the current window, like Archicad's Zoom Back.

Parameters:

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

    The number of steps to go back in the zoom history of the current window, like Archicad's Zoom Back. The default is 1.

Returns:

set_3d_cut_planes

set_3d_cut_planes(
    cut_planes: list[CutPlane],
    *,
    use_custom: None | bool = None,
    custom_pen: None | int = None,
    custom_surface_id: AttributeId | None = None,
) -> SuccessfulExecutionResult

Sets the 3D cut planes (pax + pby + pc*z = pd, cutting away the side the normal points to), with the pen and surface of their cut faces, and turns 3D Cutaway on. An empty cutPlanes array switches the 3D cut off.

Parameters:

  • cut_planes (list[CutPlane]) –

    The cut planes, replacing the current ones. Each cuts away the side of its plane that its normal vector (pa, pb, pc) points to; several planes cut away the union of those sides. Setting planes also turns 3D Cutaway on (off and on again when it is on), which puts them in force in the 3D window. An empty array switches the 3D cut off. A plane without cutPen or cutSurfaceId keeps those of the current plane in its place, or of the last current plane; where there is none, or it is pen 0 or no surface (which draws black), it takes customPen and customSurfaceId.

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

    The Custom setting of the cut faces, kept for the 3D Cutting Planes settings; in the Archicad 29 3D window the cut faces take each plane's cutSurfaceId either way. Left unchanged when omitted.

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

    The pen of the cut edges when useCustom is true. Left unchanged when omitted.

  • custom_surface_id (AttributeId | None, default: None ) –

    The surface of the cut faces when useCustom is true. Left unchanged when omitted.

Returns:

set_3d_document_settings

set_3d_document_settings(
    navigator_item_id: NavigatorItemId,
    settings: Document3DSettings,
) -> Document3DSettings

Changes the given settings of a 3D Document, given by its navigator item, in the form Get3DDocumentSettings returns; the settings not given are kept. Returns the settings read back after the change.

Parameters:

  • navigator_item_id (NavigatorItemId) –

    The navigator item of the 3D Document, from the Project Map or the View Map.

  • settings (Document3DSettings) –

    The settings to change, in the form Get3DDocumentSettings returns. Only the given keys are changed; arrays other than elemTypeFilter are replaced.

Returns:

  • Document3DSettings –

    The settings of the 3D Document, with the field names of API_DocumentFrom3DType.

set_3d_filter_and_cut_settings

set_3d_filter_and_cut_settings(
    settings: Filter3DSettingsUpdate,
    rebuild: None | bool = None,
) -> None

Changes the 'Filter and Cut Elements in 3D' settings of the 3D window; only the given fields and the listed element types change. Returns the settings read back after the change. Available from Archicad 27.

Parameters:

  • settings (Filter3DSettingsUpdate) –
  • rebuild (None | bool, default: None ) –

    If true, Archicad drops the partial conversion data, so the next rebuild of the 3D window is a full one. Default: false.

set_3d_projection_settings

Sets a perspective or an axonometric projection for the 3D window. Every perspective parameter but sun is required: read a known good set with Get3DProjectionSettings and pass it back, with the values to change replaced. An axonometry changes only the values given: the projection type, the azimuth, the transformation matrix and the sun. The sun of either changes only the values given in it and is kept when sun is missing. The 3D window shows the change after a rebuild (RebuildView), e.g. before SaveCurrentWindowAsImage.

Parameters:

Returns:

set_3d_window_settings

set_3d_window_settings(
    h_size: None | int = None,
    v_size: None | int = None,
    zoom_scale_x: None | float = None,
    zoom_scale_y: None | float = None,
    zoom_disp_x: None | float = None,
    zoom_disp_y: None | float = None,
) -> Set3DWindowSettingsResult

Changes the pixel size of the 3D window and/or the zoom (scale and displacement) of its projection; the values not given are kept. Returns the settings read back after the change. Archicad may need a rebuild of the 3D window (RebuildView) before it shows the change, e.g. before SaveCurrentWindowAsImage.

Parameters:

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

    The horizontal size of the 3D window in pixels.

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

    The vertical size of the 3D window in pixels.

  • zoom_scale_x (None | float, default: None ) –

    The horizontal zoom scale of the 3D projection.

  • zoom_scale_y (None | float, default: None ) –

    The vertical zoom scale of the 3D projection.

  • zoom_disp_x (None | float, default: None ) –

    The horizontal displacement (pan) of the 3D projection.

  • zoom_disp_y (None | float, default: None ) –

    The vertical displacement (pan) of the 3D projection.

Returns:

set_active_graphical_override_combination

Applies a graphic override combination, given by id or by name, to the current window. The current window must be a model window (floor plan, section, elevation, 3D, ...). To remove the overrides, apply the project's 'No Overrides' combination. The saved view is not changed (see SetViewSettings for that). Available from Archicad 30.

Parameters:

Returns:

set_active_renovation_filter

set_active_renovation_filter(
    parameters: ActiveRenovationFilterById
    | ActiveRenovationFilterByName,
) -> SuccessfulExecutionResult

Sets the renovation filter of the current window (Document > Renovation > Renovation Filter), given by its renovationFilterId from GetRenovationFilters or by its name. Saved views keep their own filter: change that with SetViewSettings. A section, elevation, interior elevation or 3D document that is not set to Auto-rebuild Model is refused, because Archicad would ask about it in a dialog a JSON command cannot answer.

Parameters:

Returns:

set_current_3d_style

set_current_3d_style(
    style_name: str,
) -> SuccessfulExecutionResult

Meant to make the given 3D style, one of the names Get3DStyles returns, the current one. Not available yet: it checks the name, then refuses, because Archicad's API function for it crashes Archicad.

Parameters:

  • style_name (str) –

    The name of an existing 3D style, as Get3DStyles returns it.

Returns:

set_document_from_3d_defaults

set_document_from_3d_defaults(
    name: None | str = None,
    ref_id: None | str = None,
    vect_3d_hatching: None | bool = None,
    vect_sun_shadow: None | bool = None,
    must_be_transparent: None | bool = None,
    int_plan_conn: Document3DPlanConnection | None = None,
    material_from_3d: None | bool = None,
    conture_off: None | bool = None,
    c_mater: None | int = None,
    boundary_display: Document3DBoundaryDisplay
    | None = None,
    boundary_pen: None | int = None,
    boundary_line_type: None | int = None,
    attribute_options: Document3DAttributeOptions
    | None = None,
) -> SuccessfulExecutionResult

Sets the defaults a newly created 3D Document starts with. Only the given fields are changed; existing 3D Documents are not affected. The fields are the ones returned by GetDocumentFrom3DDefaults.

Parameters:

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

    The name of a new 3D Document.

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

    The reference ID of a new 3D Document.

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

    Vectorial 3D hatching.

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

    Vectorial sun shadows.

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

    Transparency of the model.

  • int_plan_conn (Document3DPlanConnection | None, default: None ) –
  • material_from_3d (None | bool, default: None ) –

    Use the surfaces of the 3D model; when false, cMater is used for every element.

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

    Contours off.

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

    The index of the uniform surface (material), used when materialFrom3D is false.

  • boundary_display (Document3DBoundaryDisplay | None, default: None ) –
  • boundary_pen (None | int, default: None ) –

    The pen of the boundary contours, used with OverrideContours.

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

    The index of the line type of the boundary contours, used with OverrideContours.

  • attribute_options (Document3DAttributeOptions | None, default: None ) –

Returns:

set_ghost_story_settings

set_ghost_story_settings(
    on: None | bool = None,
    show_one: None | bool = None,
    show_above: None | bool = None,
    show_below: None | bool = None,
    story_index: None | int = None,
    ghost_color: ColorRGB | None = None,
    filter: None | list[ElementType] = None,
) -> SuccessfulExecutionResult

Sets the Trace & Reference ghost story settings of the floor plan through its ghost record, which is created when the floor plan has none. Every field is optional; the ones left out keep their value, and without a story choice the current reference is kept.

Parameters:

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

    Show (true) or hide (false) the ghost story on the floor plan.

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

    Show the story at storyIndex as the ghost story.

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

    Show the story above the current one as the ghost story.

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

    Show the story below the current one as the ghost story.

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

    The index of the story to show when showOne is true, as GetStories reports it.

  • ghost_color (ColorRGB | None, default: None ) –

    The color to draw the ghost story in.

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

    The element types to show in the ghost story; the others are hidden.

Returns:

set_grid_settings

set_grid_settings(settings: GridSettingsUpdate) -> None

Changes the grid and snap grid settings of the database of the current window; only the given fields change. Returns the settings read back after the change. Available from Archicad 27.

Parameters:

set_interior_elevations_details

set_interior_elevations_details(
    interior_elevations_with_details: list[
        InteriorElevationWithDetails
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets settings of the given Interior Elevation elements: the stories they are shown on, the common marker's visibility, pen, font and sizes, and for each segment, chosen by its index in GetDetailsOfElements' segments, its name, reference ID and the segment settings of SetSectionsAndElevationsDetails. The element keeps its GUID and its segments keep their viewpoints. A bad segment entry changes nothing on that element, and a change Archicad does not keep (read back after the change) fails the item with the fields it did not apply.

Parameters:

Returns:

set_layout_settings

set_layout_settings(
    layouts_data: list[LayoutSettingsData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets settings of layouts, including their master layout and Layout Info Panel custom data fields. In Teamwork the layout settings must be reserved first in Archicad (Layout Book > Reserve Layout Settings); the Archicad API cannot reserve them, and ReserveElements does not. GetTeamworkOwnersOfDatabases shows who holds a layout.

Parameters:

Returns:

set_master_layout_context

set_master_layout_context(
    layout_database_id: DatabaseId,
) -> SuccessfulExecutionResult

Sets which layout's context the master layout of the current window is drawn in: its autotexts then show the values of the given layout. The current window must be a master layout, otherwise an error is returned. It does not assign a master layout to a layout. Available from Archicad 27.

Parameters:

Returns:

set_sections_and_elevations_details

set_sections_and_elevations_details(
    elements_with_details: list[
        SectionOrElevationDetailsUpdate
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets settings of the given Section and Elevation elements: pens, line types, horizontal and vertical range, model effects, story handles and markers. The name and the reference ID are changed with ModifySections.

Parameters:

Returns:

set_structure_display

set_structure_display(
    structure_display: PartialStructureDisplay,
) -> SuccessfulExecutionResult

Sets the Partial Structure Display (EntireStructure, CoreOnly, WithoutFinishes or StructureOnly) of the current window, e.g. the floor plan, a section or the 3D window. The change cannot be undone. The saved view is not changed (see SetViewSettings for that). Available from Archicad 27.

Parameters:

Returns:

set_view_options

set_view_options(
    model_view_option_index: None | int = None,
    view_options: None | ViewOptionsUpdate = None,
) -> None

Switches the current plan window to a model view option combination by index, and/or changes the given model view options and on-screen view options. With an index, the model view options stored in the combination apply. The options are read back, and a given field Archicad did not keep (with an index, a given on-screen view option) fails the call with the value it kept; the fields Archicad kept stay changed. Archicad 29 does not keep the railing components shown in the floor plan (modelViewOptions.railing, railing2DDisplayComp*) changed this way, so such a change is reported as not kept; GetViewOptions reads them.

Parameters:

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

    Switches the window to the model view option combination with this index, as GetViewOptions, FindModelViewOption and GetModelViewOptionDetails return it. Archicad then applies the model view options stored in the combination: viewOptions.modelViewOptions are not applied together with an index, viewOptions.onScreenViewOptions are. Archicad may renumber the combinations when the view options of a window change, so look the index up by name with FindModelViewOption right before switching.

  • view_options (None | ViewOptionsUpdate, default: None ) –

set_view_rotation

set_view_rotation(
    navigator_item_ids_with_rotation: list[
        NavigatorItemIdsWithRotationItem
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Set the rotation angle of 2D views via their floor plan database.

Parameters:

Returns:

set_view_settings

set_view_settings(
    navigator_item_ids_with_view_settings: list[
        NavigatorItemIdsWithViewSetting
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the view settings of navigator items

Parameters:

Returns:

set_zoom

set_zoom(zoom_box: Zoom) -> SuccessfulExecutionResult

Zooms the current 2D window to the given box in model coordinates.

Parameters:

  • zoom_box (Zoom) –

    The area to zoom the current 2D window to, in model coordinates (meters). The window keeps its aspect ratio, so the shown area may be larger than the box. The rotation of the window is kept as it is; in a rotated window the whole box is shown, so the shown area is larger than the box.

Returns:

show_elements_in_3d

show_elements_in_3d(
    elements: None | list[ElementIdArrayItem] = None,
) -> SuccessfulExecutionResult

Opens the 3D window on the given elements, as Show Selection in 3D does: they become the selection and only they are shown. Without elements it shows every element, as Show All in 3D does.

Parameters:

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

    The elements to show in 3D. They become the selection, replacing the current one. Missing or empty: every element is shown, as Show All in 3D does.

Returns:

store_view_settings

store_view_settings(
    action: Action,
) -> SuccessfulExecutionResult

Stores the current view settings (action Store) and puts them back later (action Restore), for example before and after a script that changes the view. The two must be called in pairs and cannot be stacked. Restoring may rebuild the view.

Parameters:

  • action (Action) –

    Store saves the current view settings, Restore puts the stored ones back. Call them in pairs: a second Store before a Restore is refused.

Returns:

update_drawings

update_drawings(
    elements: list[ElementIdArrayItem],
) -> SuccessfulExecutionResult

Performs a drawing update on the given elements.

Parameters:

Returns:

zoom_to_elements

zoom_to_elements(
    elements: list[ElementIdArrayItem],
    keep_selection: None | bool = None,
) -> SuccessfulExecutionResult

Zooms the current window, 2D or 3D, to the given elements: selects them, zooms to the selection and restores the previous selection unless keepSelection is false. Fails when none of the elements could be selected, e.g. all of them are on another story or on a hidden layer.

Parameters:

  • elements (list[ElementIdArrayItem]) –

    A list of elements.

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

    Restore the selection the window had before the command (default). With false the given elements stay selected.

Returns:

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