示例#1
0
 internal new void FriendQuit()
 {
     if (mblnOpened)
     {
         base.FriendQuit();
         mobjAcadGroups             = null;
         mobjAcadPlotStyleNames     = null;
         mobjAcadMLineStyles        = null;
         mobjAcadPlotConfigurations = null;
         mobjAcadLayouts            = null;
         mblnOpened = false;
     }
 }
示例#2
0
        internal AcadLayouts FriendAddAcadObjectLayouts(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
        {
            AcadLayouts dobjAcadLayouts3;

            if (mobjAcadLayouts == null)
            {
                dobjAcadLayouts3 = new AcadLayouts();
                if (nvdblObjectID == -1.0)
                {
                    nvdblObjectID = base.Database.FriendGetNextObjectID;
                }
                AcadLayouts acadLayouts = dobjAcadLayouts3;
                acadLayouts.FriendLetNodeParentID     = base.NodeID;
                acadLayouts.FriendLetApplicationIndex = base.FriendGetApplicationIndex;
                acadLayouts.FriendLetDocumentIndex    = base.FriendGetDocumentIndex;
                acadLayouts.FriendLetDatabaseIndex    = base.FriendGetDatabaseIndex;
                acadLayouts.FriendLetOwnerID          = base.ObjectID;
                AcadLayouts acadLayouts2    = acadLayouts;
                double      vdblObjectID    = nvdblObjectID;
                AcadObject  nrobjAcadObject = dobjAcadLayouts3;
                bool        flag            = acadLayouts2.FriendSetObjectID(vdblObjectID, ref nrobjAcadObject, ref nrstrErrMsg);
                dobjAcadLayouts3 = (AcadLayouts)nrobjAcadObject;
                bool dblnValid = default(bool);
                if (flag)
                {
                    acadLayouts.FriendAddReactorsID(base.ObjectID, 330);
                    dblnValid = true;
                }
                else
                {
                    hwpDxf_Functions.BkDXF_DebugPrint(acadLayouts.ObjectName + ": " + nrstrErrMsg);
                }
                acadLayouts = null;
                if (dblnValid)
                {
                    mobjAcadLayouts = dobjAcadLayouts3;
                    FriendAddItem(mobjAcadLayouts.Name, mobjAcadLayouts);
                }
            }
            AcadLayouts FriendAddAcadObjectLayouts = mobjAcadLayouts;

            dobjAcadLayouts3 = null;
            return(FriendAddAcadObjectLayouts);
        }