Exemplo n.º 1
0
 private void DrawTemporaryGraphics()
 {
     Autodesk.AutoCAD.GraphicsInterface.TransientManager man = Autodesk.AutoCAD.GraphicsInterface.TransientManager.CurrentTransientManager;
     foreach (Autodesk.AutoCAD.GraphicsInterface.Drawable item in temporaryGraphics)
     {
         man.AddTransient(item, Autodesk.AutoCAD.GraphicsInterface.TransientDrawingMode.DirectShortTerm, 128, new IntegerCollection());
     }
 }
Exemplo n.º 2
0
 private void EraseTemporaryGraphics()
 {
     Autodesk.AutoCAD.GraphicsInterface.TransientManager man = Autodesk.AutoCAD.GraphicsInterface.TransientManager.CurrentTransientManager;
     foreach (Autodesk.AutoCAD.GraphicsInterface.Drawable item in temporaryGraphics)
     {
         man.EraseTransient(item, new IntegerCollection());
         item.Dispose();
     }
     temporaryGraphics.Clear();
 }