internal void FriendSDINewDoc(int vlngIndex) { Application.RaiseEventNewDrawing(); AcadDocument dobjAcadDocument2 = (AcadDocument)mcolClass["K" + Conversions.ToString(vlngIndex)]; dobjAcadDocument2.FriendReset("AC1018"); dobjAcadDocument2.FriendSetFullName(InternGetNewName(), vblnDwgTitled: false); InternAddToAllDicts(ref dobjAcadDocument2); dobjAcadDocument2 = null; }
internal bool FriendSDIOpenDoc(int vlngIndex, string vstrFileName, ref string nrstrErrMsg = "") { nrstrErrMsg = null; string dstrAcadVer = default(string); bool FriendSDIOpenDoc = default(bool); if (!InternCheckName(vstrFileName, ref nrstrErrMsg) && Operators.ConditionalCompareObjectNotEqual(vlngIndex, mobjDictFullName[vstrFileName], TextCompare: false)) { AcadDocument dobjAcadDocument4 = null; } else if (hwpDxf_Functions.BkDXF_OpenFile(vstrFileName, ref dstrAcadVer, ref nrstrErrMsg)) { AcadDocument dobjAcadDocument4 = (AcadDocument)mcolClass["K" + Conversions.ToString(vlngIndex)]; hwpDxf_Vars.pblnReadDocument = true; dobjAcadDocument4.FriendReset(dstrAcadVer); bool dblnRead = InternReadFile(vstrFileName, ref dobjAcadDocument4, ref nrstrErrMsg); hwpDxf_Vars.pblnReadDocument = false; if (!dblnRead) { dobjAcadDocument4.FriendReset("AC1018"); dobjAcadDocument4.FriendSetFullName(InternGetNewName(), vblnDwgTitled: false); InternAddToAllDicts(ref dobjAcadDocument4); dobjAcadDocument4 = null; } else { bool flag = true; dobjAcadDocument4.Database.FriendAddAndInitObjects(); dobjAcadDocument4.FriendSetFullName(vstrFileName, vblnDwgTitled: true); InternAddToAllDicts(ref dobjAcadDocument4); FriendSDIOpenDoc = true; dobjAcadDocument4 = null; } } return(FriendSDIOpenDoc); }