public override void Initialization(Transaction transaction) { var dbPoint = ObtainDbObject(transaction, OpenMode.ForRead) as DBPoint; Point = new Point(dbPoint.Position); LayerId = dbPoint.LayerId; }
public override void Initialization(Transaction transaction) { var circle = ObtainDbObject(transaction, OpenMode.ForRead) as Circle; Debug.Assert(circle != null, "circle != null"); Center = new Point(circle.Center); Radius = circle.Radius; LayerId = circle.LayerId; }
public override void Initialization(Transaction transaction) { var line = ObtainDbObject(transaction, OpenMode.ForRead) as Line; Debug.Assert(line != null, "line != null"); StartPoint = new Point(line.StartPoint); EndPoint = new Point(line.EndPoint); LayerId = line.LayerId; }