Esempio n. 1
0
 internal new void FriendQuit()
 {
     if (mblnOpened)
     {
         base.FriendQuit();
         mobjAcadGroups             = null;
         mobjAcadPlotStyleNames     = null;
         mobjAcadMLineStyles        = null;
         mobjAcadPlotConfigurations = null;
         mobjAcadLayouts            = null;
         mblnOpened = false;
     }
 }
Esempio n. 2
0
        internal AcadGroups FriendAddAcadObjectGroups(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
        {
            AcadGroups dobjAcadGroups3;

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

            dobjAcadGroups3 = null;
            return(FriendAddAcadObjectGroups);
        }