Skip to content

Revision Management

Read revision changes, document revisions and issues, and create or update change markers and revision issues.

Access this group through api.tapir.revision_management.

Commands

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

create_change_markers

create_change_markers(
    change_markers_data: list[ChangeMarkerData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates Change Markers (revision clouds) in the database of the active window, each with a cloud polygon, its marker components, the position it points to and the position of its marker head. A marker can be linked to an existing Change by its ID, or create a new Change with an ID and a description (createChange): the Archicad API creates Changes only this way. The marker head uses the Change Marker tool defaults, with the angle and always-horizontal setting given (angle, horizontalMarker). ModifyChangeMarkers takes the same settings. GetDetailsOfElements reads the markers back.

Parameters:

  • change_markers_data (list[ChangeMarkerData]) –

    The Change Markers to create, in the database of the active window (the floor plan story, a section, a detail, a worksheet or a layout).

Returns:

get_current_revision_changes_of_layouts

get_current_revision_changes_of_layouts(
    layout_database_ids: list[DatabaseIdArrayItem],
) -> list[ErrorItem | RevisionChangesArrayItem]

Retrieves all changes belong to the last revision of the given layouts.

Parameters:

Returns:

  • list[ErrorItem | RevisionChangesArrayItem] –

    The revision changes of the requested entities, in the order of the input, or an error for an entity whose changes could not be retrieved.

get_document_revisions

get_document_revisions() -> list[DocumentRevision]

Retrieves all document revisions.

Returns:

get_revision_change_custom_scheme

get_revision_change_custom_scheme() -> list[
    RevisionChangeCustomSchemeItem
]

Retrieves the custom fields of changes (the change custom scheme): the key and the name of each field. The keys are the customSchemeKey values in the customSchemeData of changes.

Returns:

get_revision_changes

get_revision_changes() -> list[RevisionChange]

Retrieves all changes.

Returns:

get_revision_changes_of_elements

get_revision_changes_of_elements(
    elements: list[ElementIdArrayItem],
) -> list[ErrorItem | RevisionChangesArrayItem]

Retrieves the changes belong to the given elements.

Parameters:

Returns:

  • list[ErrorItem | RevisionChangesArrayItem] –

    The revision changes of the requested entities, in the order of the input, or an error for an entity whose changes could not be retrieved.

get_revision_issues

get_revision_issues() -> GetRevisionIssuesResult

Retrieves all issues.

Returns:

modify_change_markers

modify_change_markers(
    change_markers_with_details: list[
        ChangeMarkerWithDetails
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Changes existing Change Markers (revision clouds) with the keys CreateChangeMarkers takes and GetDetailsOfElements returns: the Change the marker is linked to (an existing Change by its ID, a new Change made with createChange, or no Change with linkType Unlinked), the marker components, the angle and always-horizontal setting of the marker head, the position of the marker head (markerPosition), and the point a marker without a cloud polygon points to (position). Only the given settings are changed. The cloud polygon cannot be changed, as Archicad keeps it: delete the marker and create it again. The marker is read back, so a value Archicad did not keep is reported as a failure.

Parameters:

  • change_markers_with_details (list[ChangeMarkerWithDetails]) –

    The Change Markers to change, in the database of the active window, each with the settings to change. Only the given settings are changed; the keys are those CreateChangeMarkers takes and GetDetailsOfElements returns. The cloud polygon cannot be changed: besides the settings, ACAPI_Element_Change only changes the position of a marker without a polygon, so delete the marker and create it again with CreateChangeMarkers for a new polygon.

Returns:

modify_revision_issues

modify_revision_issues(
    revision_issues: list[RevisionIssueModificationData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies the ID, the short description and the custom scheme data of the given revision issues. Only the given fields are changed. Issued revision issues may refuse the change.

Parameters:

Returns:

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