TransactionManager Object
Description
The TransactionManager object encapsulates all of the transaction-based functionality. See the article in the overviews section.
Methods
ClearAllTransactions |
Method that clears all the transactions in the committed and undone stacks. After this method is called a user may no longer Undo/Redo until another transaction is committed. This method fails if an identified transaction is in progress. |
GoToCheckPoint |
Aborts back up to the checkpoint specified. |
RedoTransaction |
Redoes the transaction following the current (if that had been undone). |
SetCheckPoint |
Sets a bookmark in the current transaction in progress. |
StartTransaction |
Starts a new transaction. |
StartTransactionForDocumentOpen |
Start a transaction that wraps a document open or new document operation. |
UndoTransaction |
Undoes the current transaction. |
Properties
Application |
Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned. |
CommittedTransactions |
Gets the collection of all committed transactions currently held by the system. These can be undone in reverse sequence. |
CurrentTransaction |
Gets the current transaction in progress. |
Parent |
Property that returns the parent object from whom this object can logically be reached. |
TransactionEvents |
Gets the object that will fire transaction events. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
UndoneTransactions |
Gets the collection of all currently undone transactions. These can be redone in forward sequence. |
Accessed From
Application.TransactionManager,
CheckPoint.Parent,
InventorServer.TransactionManager,
InventorServerObject.TransactionManager,
Transaction.Parent,
TransactionEvents.Parent
Samples
Using Inventor's error dialog |
Demonstrates using Inventor's error dialog. |
Client graphics texture-based color mapping |
This test applies texture coordinates expressing distance from the origin to 'the triangle mesh of whatever Part you have open. It then creates either a discrete-band or continuous color mapper and allows you to adjust the values of the mapper to change the range of values that map to various colors. |
Sketch Lines |
This sample demonstrates creating lines. It uses all of the various methods to create lines, both singly and as rectangles. |
Version
Introduced in version 4