internal static void Run() { Point2d prevpt = TC.GetPoint("Specify first point"); Point2d nextpt = TC.GetPoint("Specify next point", prevpt); EntityLine eli = new EntityLine(prevpt.X, prevpt.Y, nextpt.X, nextpt.Y); TC.AddEntity(eli); }
OrderedDictionary <UInt64, EntitySpatial> Spatial = new OrderedDictionary <UInt64, EntitySpatial>(); //Geometric entities public Drawing() { DB = new DB(); DB.Changed += DBChanged; EntityLine elin = new EntityLine(0, 0, 100, 100); DB.Add(elin); DB.Remove(elin); for (int l = 0; l < 10000; l++) { EntityLine el = new EntityLine(AppUtil.RandDouble(500), AppUtil.RandDouble(500), AppUtil.RandDouble(500), AppUtil.RandDouble(500)); el.Color = RGB.Random; DB.Add(el); } }