I have a CommandMethod which has a loop that opens and commits transactions until the user is finished with it and exits.
I would like each transaction to be undone seperately but the undo command undoes the CommandMethod (along with all the transactions that occured while in the loop)
Do I need to use the COM StartUndoMark and EndUndoMark to get this working?
Hope someone can help,
Dim curdoc As IAcadDocument is not recognised.
Appologies for my ignorance.but is this a COM component that I need to reference in?
Yes, IAcadDocument can be replaced by Autodesk.AutoCAD.Interop.AcadDocument, you need to set references to Autodesk.AutoCAD.Interop and Autodesk.AutoCAD.Interop.Common , you can find the references in the GAC or the inc folder of the SDK depending on version.