public void Dispose() { AC_Tr.Commit(); AC_blockTable.Dispose(); AC_blockTableRecord.Dispose(); AC_Tr.Dispose(); }
public void closeObject(Entity Obj) { Obj.Dispose(); AC_Tr.Commit(); AC_blockTable.Dispose(); AC_blockTableRecord.Dispose(); AC_Tr.Dispose(); }
public void Dispose() { if (!AC_blockTable.IsDisposed) { AC_blockTable.Dispose(); } if (!AC_blockTableRecord.IsDisposed) { AC_blockTableRecord.Dispose(); } if (!AC_Tr.IsDisposed) { AC_Tr.Commit(); AC_Tr.Dispose(); } }
//GET FUNCTIONS///////////////////////////////////////////////////////////////////////////////// public ObjectId getGroupWithTag(string tag) { start_Transaction(); DBDictionary gd = openGroupDictionary(OpenMode.ForRead); if (gd.Contains(tag)) { AC_Tr.Commit(); AC_Tr.Dispose(); return(gd.GetAt(tag)); } else { AC_Tr.Commit(); AC_Tr.Dispose(); return(ObjectId.Null); } }
public void end_Transaction() { AC_Tr.Commit(); AC_Tr.Dispose(); }