How can I delete a couple transactions

How can I delete a couple transactions

rschader
Advocate Advocate
279 Views
1 Reply
Message 1 of 2

How can I delete a couple transactions

rschader
Advocate
Advocate
I have a macro that needs to insert an object and delete it to get some info I cannot get any other way, and then inserts the object again. However, the transaction manager lets the user undo all three. Is there some easy way to NOT record the first 2 portions as transactions, or do I need to group them all as one transaction. I'd rather not have to make the switch to ChangeProcessor yet, as this seems a fairly simple task just using transactions.
0 Likes
280 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
If I understand your workflow, you can start a transaction (using the
TransactionManager object), perform the first two steps and then abort the
transaction. Then you can start another transaction and do the final step
and then end this transaction. Aborting will get rid of any action that
occurred since you started the transaction so there won't be any need to
delete anything.

It would also be possible to start a transaction perform all of the steps
and then end that transaction. For the user there will still only be a
single undo. Internally there's just more happening in that undo than is
necessary.
--
Brian Ekins
Autodesk Inventor API

wrote in message news:5581920@discussion.autodesk.com...
I have a macro that needs to insert an object and delete it to get some info
I cannot get any other way, and then inserts the object again. However, the
transaction manager lets the user undo all three. Is there some easy way to
NOT record the first 2 portions as transactions, or do I need to group them
all as one transaction. I'd rather not have to make the switch to
ChangeProcessor yet, as this seems a fairly simple task just using
transactions.
0 Likes