Commits

Anonymous committed 5f85c2c

Ported AlignmentEntitiesCommandsColibra to be a SimpleDrawingCommand

  • Participants
  • Parent commits 5d1a0ca

Comments (0)

Files changed (1)

dev/src/samples/NetSamples/Samples/Alignments/AlignmentEntitiesCommandsColibra.cs

 
 namespace Autodesk.CivilizedDevelopment
 {
-    public class AlignmentEntitiesCommandsColibra
+    public class AlignmentEntitiesCommandsColibra : SimpleDrawingCommand
     {
         [CommandMethod("CDS_WriteAlignmentEntitiesById")]
         public void CDS_WriteAlignmentEntitiesById()
                 new SingleObjectSelector<Alignment>();
                 if (!selector.Select(current))
                 {
-                    _output.WriteMessage("\nNo Alignment was selected.");
+                    write("\nNo Alignment was selected.");
                     return;
                 }
 
                 processor.WriteInfo(writer);
             }
         }
-
-        private Editor _output
-        {
-            get
-            {
-                return Autodesk.AutoCAD.ApplicationServices.Application
-                    .DocumentManager.MdiActiveDocument.Editor;
-            }
-        }
     }
 }