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¶
No commands match. Try another name or clear the filter.
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:
-
list[ElementIdArrayItem | ErrorItem]–A list of element identifiers or errors.
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:
-
layout_database_ids(list[DatabaseIdArrayItem]) –A list of Archicad databases.
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]
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:
-
list[RevisionChangeCustomSchemeItem]–
get_revision_changes ¶
get_revision_changes() -> list[RevisionChange]
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:
-
elements(list[ElementIdArrayItem]) –A list of elements.
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
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:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
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:
-
revision_issues(list[RevisionIssueModificationData]) –The revision issues to modify. Only the given fields are changed.
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.
CreateChangeMarkersParametersCreateChangeMarkersResultGetCurrentRevisionChangesOfLayoutsParametersGetCurrentRevisionChangesOfLayoutsResultGetDocumentRevisionsResultGetRevisionChangeCustomSchemeResultGetRevisionChangesOfElementsParametersGetRevisionChangesOfElementsResultGetRevisionChangesResultGetRevisionIssuesResultModifyChangeMarkersParametersModifyChangeMarkersResultModifyRevisionIssuesParametersModifyRevisionIssuesResultChangeMarkerDataChangeMarkerWithDetailsDatabaseIdArrayItemDocumentRevisionElementIdArrayItemErrorItemFailedExecutionResultRevisionChangeRevisionChangeCustomSchemeItemRevisionChangesArrayItemRevisionIssueModificationDataSuccessfulExecutionResult