public void CountParcels() { var cmd = new ParcelCounter(); var summary = cmd.Count(); Active.Editor.WriteMessage($"\nFound {summary.Count} items."); Active.Editor.WriteMessage($"\nTotal Area: {summary.Area:N2}"); }
public void CountParcels() { var cmd = new ParcelCounter(); var summary = cmd.Count(); var acadWriter = new AutocadMessageWriter(); var myDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var filePath = Path.Combine(myDocuments, "ParcelSummary.txt"); var textWriter = new TextMessageWriter(filePath); var summarizer = new ParcelSummaryWriter(); summarizer.Write(summary, acadWriter); summarizer.Write(summary, textWriter); }