.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
SRSDS
544 Views, 1 Reply

Undo marks

Can anyone advise on how to group actions together in undo marks. It's been asked before but sone time back and doesn't seem like it's been answered.

 

In VBA it was done using StartUndoMark and EndUndoMark

 

I have multiple transactions occuring within a procedure. ADDTEXT is one procedure that starts and commits a transaction.

 

All transactions  all grouped under a single undo method after the procedure is complete. 

 

 

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: SRSDS

Hello,

this work good at me.

 

Before first transaction add:

 

'This is current database

dim db As Database = HostApplicationServices.WorkingDatabase

'Here we will disable partial undo recording

db.DisableUndoRecording(True)

 

'Here is our code for any number transactions

...

 

 

'On end we add

db.DisableUndoRecording(False)

 

Best regards,

Danijel

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report