Message 1 of 2
TransactionManager

Not applicable
05-09-2003
06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am apparently doing something wrong with the TransactionManager. I haven't completely
read all the stuff on it in help yet, so this may be a bit premature but.....
I want to be able to run this sub multiple times while the program is active. It runs OK
the first time, then hangs on the Set oTxn= line the second time through. Do I have to
give each tranasction a different name or clear it or ??
Any clues appreciated. 8^)
Public Sub test()
If bInUndoLoop = True Then
''''Set oTxnMgr = oApp.TransactionManager
Set oTxn = Nothing
' Start a regular transaction
Set oTxn = oTxnMgr.StartTransaction(oDoc, "Test1")
Do Stuff
oTxn.End
bInUndoLoop = False
oDoc.Update
End If
End Sub
--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program
read all the stuff on it in help yet, so this may be a bit premature but.....
I want to be able to run this sub multiple times while the program is active. It runs OK
the first time, then hangs on the Set oTxn= line the second time through. Do I have to
give each tranasction a different name or clear it or ??
Any clues appreciated. 8^)
Public Sub test()
If bInUndoLoop = True Then
''''Set oTxnMgr = oApp.TransactionManager
Set oTxn = Nothing
' Start a regular transaction
Set oTxn = oTxnMgr.StartTransaction(oDoc, "Test1")
Do Stuff
oTxn.End
bInUndoLoop = False
oDoc.Update
End If
End Sub
--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program