<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to UNDO step by step in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-undo-step-by-step/m-p/1452157#M83572</link>
    <description>Please, &lt;BR /&gt;
I need help in the following problem.&lt;BR /&gt;
My application based on window dialog:&lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(…);&lt;BR /&gt;
	  &lt;BR /&gt;
Application creates some entities in following way:&lt;BR /&gt;
trans= db.TransactionManager.StartTransaction();			&lt;BR /&gt;
ObjId = btr.AppendEntity(pEntity);&lt;BR /&gt;
trans.AddNewlyCreatedDBObject(pEntity, true);&lt;BR /&gt;
trans.Commit();&lt;BR /&gt;
&lt;BR /&gt;
Now I need to UNDO step by step all created entities. But when I enter command UNDO – all entities disappeared like group or mark UNDO after first U.&lt;BR /&gt;
&lt;BR /&gt;
I tried in my application for every transaction:&lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_UNDO _BE ",true, false,true);&lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_UNDO _EN ",true, false,true);&lt;BR /&gt;
&lt;BR /&gt;
I also tried experiments with db.DisableUndoRecording&lt;BR /&gt;
&lt;BR /&gt;
But nothing helps.&lt;BR /&gt;
&lt;BR /&gt;
Please, help me to find solving and way how to solve my problem.&lt;BR /&gt;
Thank you</description>
    <pubDate>Thu, 06 Oct 2005 04:55:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-10-06T04:55:00Z</dc:date>
    <item>
      <title>How to UNDO step by step</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-undo-step-by-step/m-p/1452157#M83572</link>
      <description>Please, &lt;BR /&gt;
I need help in the following problem.&lt;BR /&gt;
My application based on window dialog:&lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(…);&lt;BR /&gt;
	  &lt;BR /&gt;
Application creates some entities in following way:&lt;BR /&gt;
trans= db.TransactionManager.StartTransaction();			&lt;BR /&gt;
ObjId = btr.AppendEntity(pEntity);&lt;BR /&gt;
trans.AddNewlyCreatedDBObject(pEntity, true);&lt;BR /&gt;
trans.Commit();&lt;BR /&gt;
&lt;BR /&gt;
Now I need to UNDO step by step all created entities. But when I enter command UNDO – all entities disappeared like group or mark UNDO after first U.&lt;BR /&gt;
&lt;BR /&gt;
I tried in my application for every transaction:&lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_UNDO _BE ",true, false,true);&lt;BR /&gt;
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_UNDO _EN ",true, false,true);&lt;BR /&gt;
&lt;BR /&gt;
I also tried experiments with db.DisableUndoRecording&lt;BR /&gt;
&lt;BR /&gt;
But nothing helps.&lt;BR /&gt;
&lt;BR /&gt;
Please, help me to find solving and way how to solve my problem.&lt;BR /&gt;
Thank you</description>
      <pubDate>Thu, 06 Oct 2005 04:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-undo-step-by-step/m-p/1452157#M83572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-10-06T04:55:00Z</dc:date>
    </item>
  </channel>
</rss>

