

Var SelectionSet = editor.SelectAll().Value įoreach (ObjectId Objeto in SelectionSet.GetObjectIds())Įntity ent = ZcTran.GetObject(Objeto, OpenMode.ForWrite) as Entity Using (Transaction ZcTran = ())īlockTable zcBLT = (BlockTable)ZcTran.GetObject(zcDB.BlockTableId, OpenMode.ForWrite) īlockTableRecord zcBLTR = (BlockTableRecord)ZcTran.GetObject(zcBLT, OpenMode.ForWrite) Using (DocumentLock acLckDoc = zcDoc.LockDocument()) Is there a place where I can release the lock and I'm not doing? įoreach (string FileName in DocList.Files)Ī(FileName, false) ĭocument zcDoc = I have this code down here that opens a drawing, change some layers and close, but after it's done and the drawing closes, there is a file named DocName.dwl in the same folder as the dwg that I can't delete without closing autocad.
