public void dwgopen() { try { Kcs_ui.MessageNoConfirm(CurrentElement.Element.GetAsString(DbAttributeInstance.NAME)); if (Kcs_draft.DwgCurrent()) { string title = "도면저장"; string titleMsg = "현재 도면을 저장하시겠습니까?"; if (Kcs_ui.AnswerReq(title, titleMsg) == Kcs_util.Yes()) { try { Kcs_util.CleanWorkspace(); Kcs_draft.DwgPurge(); Kcs_draft.DwgPack(); Kcs_draft.DwgSave(); } catch (MarVitesseException e) { Kcs_ui.MessageNoConfirm(e.ToString()); } } } Kcs_draft.DwgClose(); //사실 DWGOPEN은 SHEE를 여는것이다. Kcs_draft.DwgOpen(CurrentElement.Element.GetAsString(DbAttributeInstance.NAME)); System.GC.Collect(); System.GC.WaitForFullGCComplete(); } catch (Exception e) { Console.WriteLine(e.Message); } }