IDatabaseRevision

class IDatabaseRevision

Bases: ImpactCOMWrapperBase

Summary:

Represents the revision of a drawing stored in the database.

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

property comments

Gets Comments.

Summary:

The comments assigned to this revision of the drawing.

Returns:

The value of Comments.

Return type:

comments (str)

property created_date_time

Gets created_date_time.

Summary:

The date and time this revision was created.

Returns:

The value of created_date_time.

Return type:

created_date_time (datetime)

property file_location

Gets file_location.

Summary:

The location of the revision drawing file in the database.

Remarks:

This property returns the location of the drawing file for this revision in the database. You should check that has_geometry is true before using this property. This property works with both File and BLOB databases. For a BLOB database the location is a temporary file in the Geometry Cache folder which will be deleted when the owning IDatabaseRevision object is destroyed. This property will work with the IServer however the database must be configured to use UNC names and the client must have access to the network location to access the file. This property is provided so that you can pass the drawing file to another component such as the Impact active_x control. Replacing or deleting the file in the location may result in a corrupt Impact database. Extreme care should be exercised when using this property.

Returns:

The value of file_location.

Return type:

file_location (str)

Examples:

property has_geometry

Gets has_geometry.

Summary:

Indicates whether the revision has geometry saved with it.

Returns:

The value of has_geometry.

Return type:

has_geometry (bool)

property key

Gets Key.

Summary:

The key of this revision.

Returns:

The value of Key.

Return type:

key (int)

property number

Gets Number.

Summary:

The revision number.

Returns:

The value of Number.

Return type:

number (int)

property user

Gets User.

Summary:

The user that created this revision.

Returns:

The value of User.

Return type:

user (IUser)

isNone()

Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.

open_copy()
Summary:

Open a copy of the revision.

refresh()
Summary:

Refresh the revision information from the database.