Exemplo n.º 1
0
 internal new void FriendQuit()
 {
     if (mblnOpened)
     {
         base.FriendQuit();
         mobjAcadGroups             = null;
         mobjAcadPlotStyleNames     = null;
         mobjAcadMLineStyles        = null;
         mobjAcadPlotConfigurations = null;
         mobjAcadLayouts            = null;
         mblnOpened = false;
     }
 }
Exemplo n.º 2
0
        internal AcadDictionaryWithDefault FriendAddAcadObjectPlotStyleNames(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
        {
            AcadDictionaryWithDefault dobjAcadPlotStyleNames3;

            if (mobjAcadPlotStyleNames == null)
            {
                base.Database.Classes.FriendAddAcDbDictionaryWithDefault();
                dobjAcadPlotStyleNames3 = new AcadDictionaryWithDefault();
                if (nvdblObjectID == -1.0)
                {
                    nvdblObjectID = base.Database.FriendGetNextObjectID;
                }
                AcadDictionaryWithDefault acadDictionaryWithDefault = dobjAcadPlotStyleNames3;
                acadDictionaryWithDefault.Name = "ACAD_PLOTSTYLENAME";
                acadDictionaryWithDefault.FriendLetNodeParentID     = base.NodeID;
                acadDictionaryWithDefault.FriendLetApplicationIndex = base.FriendGetApplicationIndex;
                acadDictionaryWithDefault.FriendLetDocumentIndex    = base.FriendGetDocumentIndex;
                acadDictionaryWithDefault.FriendLetDatabaseIndex    = base.FriendGetDatabaseIndex;
                acadDictionaryWithDefault.FriendLetOwnerID          = base.ObjectID;
                AcadDictionaryWithDefault acadDictionaryWithDefault2 = acadDictionaryWithDefault;
                double     vdblObjectID    = nvdblObjectID;
                AcadObject nrobjAcadObject = dobjAcadPlotStyleNames3;
                bool       flag            = acadDictionaryWithDefault2.FriendSetObjectID(vdblObjectID, ref nrobjAcadObject, ref nrstrErrMsg);
                dobjAcadPlotStyleNames3 = (AcadDictionaryWithDefault)nrobjAcadObject;
                bool dblnValid = default(bool);
                if (flag)
                {
                    acadDictionaryWithDefault.FriendAddReactorsID(base.ObjectID, 330);
                    dblnValid = true;
                }
                else
                {
                    hwpDxf_Functions.BkDXF_DebugPrint(acadDictionaryWithDefault.ObjectName + ": " + nrstrErrMsg);
                }
                acadDictionaryWithDefault = null;
                if (dblnValid)
                {
                    mobjAcadPlotStyleNames = dobjAcadPlotStyleNames3;
                    FriendAddItem(mobjAcadPlotStyleNames.Name, mobjAcadPlotStyleNames);
                }
            }
            AcadDictionaryWithDefault FriendAddAcadObjectPlotStyleNames = mobjAcadPlotStyleNames;

            dobjAcadPlotStyleNames3 = null;
            return(FriendAddAcadObjectPlotStyleNames);
        }