Database db=HostApplicationServices.WrokingDatabase;
Editor ed=Autodesk.AutoCAD.ApplicationService.Application.DocumentMannger.MdiActiveDocument.Editor;