deactivatecogoPnts() { if (cogoPnt != null) { using (Transaction tr = BaseObjs.startTransactionDb()) { // Open the polyline for read cogoPnt = (CogoPoint)tr.GetObject(cogoPnt.ObjectId, OpenMode.ForRead); if (cogoPnt.IsWriteEnabled == false) { cogoPnt.UpgradeOpen(); } cogoPnt.Modified -= new EventHandler(cogoPnt_Modified); cogoPnts.Remove(cogoPnt.ObjectId); cogoPnt = null; tr.Commit(); } } }// deactivateMText