IReleaseAction

class IReleaseAction

Bases: ImpactCOMWrapperBase

Description:

Represents the release information when releasing a drawing.$$OBJECT_MODEL$$%%Diagram%%” –>

Remarks:

The IApplication.gui.active_database_release property can be used from an auto-task script to interogate the release action currently being performed.

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property action

Gets Action.

Description:

Specifies the action to take when releasing the drawing.

Remarks:

The Action can only be raUpdate or raDiscard, trying to set any other value will result in an error.

Returns:

The value of Action.

Return type:

action (ipReleaseAction)

property comment

Gets Comment.

Description:

Specifies a comment to add when releasing the drawing.

Returns:

The value of Comment.

Return type:

comment (str)

property create_revision

Gets create_revision.

Description:

Specifies if a revision should be created when releasing the drawing.

Returns:

The value of create_revision.

Return type:

create_revision (bool)

property customer_changed

Gets customer_changed.

Description:

Indicates whether the customer for the drawing has been modified.

Returns:

The value of customer_changed.

Return type:

customer_changed (bool)

property keep_working

Gets keep_working.

Description:

Specifies if the drawing should be kept open when the update has been performed.

Remarks:

This property only applies when the Action is raUpdate.

Returns:

The value of keep_working.

Return type:

keep_working (bool)

property layers

Gets Layers.

Description:

An IUpdateLayers collection representing the layers in a drawing that will be released.

Returns:

The value of Layers.

Return type:

layers (IReleaseLayers)

property lock

Gets Lock.

Description:

Specifies if projects should be locked after the release.

Returns:

The value of Lock.

Return type:

lock (bool)

property project

Gets Project.

Description:

Gets the project this release action is associated with.

Returns:

The value of Project.

Return type:

project (IDatabaseItem)

property project_info_changed

Gets project_info_changed.

Description:

Indicates whether the project information for the drawing has been modified.

Returns:

The value of project_info_changed.

Return type:

project_info_changed (bool)

property reassign_to

Gets reassign_to.

Description:

Sets and gets the user to reassign to.

Returns:

The value of reassign_to.

Return type:

reassign_to (IUser)

property reassign_without_updating

Gets reassign_without_updating.

Description:

Sets and gets if the drawing should be reassigned without updating it.

Returns:

The value of reassign_without_updating.

Return type:

reassign_without_updating (bool)

property replace_last_revision

Gets replace_last_revision.

Description:

Specifies if the last revision of the drawing should be replaced.

Returns:

The value of replace_last_revision.

Return type:

replace_last_revision (bool)

property revision

Gets Revision.

Description:

Gets the revision number of the project being released.

Remarks:

This property will return both the revision number before and revision number after of the project being released when using the update_before and update_after auto-tasks.

Returns:

The value of Revision.

Return type:

revision (IDatabaseRevision)

property user

Gets User.

Description:

Gets the user who is performing the release.

Returns:

The value of User.

Return type:

user (IUser)

refresh()
Description:

Refresh the release information from the database.

Examples