Exemple #1
0
        private static void Group_ObjectClosed(object sender, ObjectClosedEventArgs e)
        {
            if (erasingGroupId == ObjectId.Null)
            {
                return;
            }
            Database db = HostApplicationServices.WorkingDatabase;

            using (Transaction trans = db.TransactionManager.StartTransaction())
            {
                Group g = trans.GetObject(erasingGroupId, OpenMode.ForWrite) as Group;
                erasingGroupId = ObjectId.Null;
                g.Erase();
                trans.Commit();
            }
        }
Exemple #2
0
 void BaseDBObject_ObjectClosed(object sender, ObjectClosedEventArgs e)
 {
     ObjectClosed(sender, e);
 }
Exemple #3
0
 void BaseDBObject_ObjectClosed(object sender, ObjectClosedEventArgs e)
 {
     ObjectClosed(sender, e);
 }