示例#1
0
 internal new void FriendQuit()
 {
     if (mblnOpened)
     {
         base.FriendQuit();
         mobjAcadPlaceholderNormal = null;
         mblnOpened = false;
     }
 }
示例#2
0
        internal AcadPlaceholder FriendAddAcadObjectPlaceholderNormal(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
        {
            if (Operators.CompareString(base.Name, "ACAD_PLOTSTYLENAME", TextCompare: false) == 0)
            {
                if (mobjAcadPlaceholderNormal == null)
                {
                    string          dstrPlaceholderName        = "Normal";
                    AcadPlaceholder dobjAcadPlaceholderNormal2 = (AcadPlaceholder)FriendGetItem(dstrPlaceholderName);
                    bool            dblnValid = default(bool);
                    if (dobjAcadPlaceholderNormal2 != null)
                    {
                        dblnValid = true;
                    }
                    else
                    {
                        base.Database.Classes.FriendAddAcDbPlaceholder();
                        dobjAcadPlaceholderNormal2 = new AcadPlaceholder();
                        if (nvdblObjectID == -1.0)
                        {
                            nvdblObjectID = base.Database.FriendGetNextObjectID;
                        }
                        AcadPlaceholder acadPlaceholder = dobjAcadPlaceholderNormal2;
                        acadPlaceholder.FriendLetName             = dstrPlaceholderName;
                        acadPlaceholder.FriendLetNodeParentID     = base.NodeID;
                        acadPlaceholder.FriendLetApplicationIndex = base.FriendGetApplicationIndex;
                        acadPlaceholder.FriendLetDocumentIndex    = base.FriendGetDocumentIndex;
                        acadPlaceholder.FriendLetDatabaseIndex    = base.FriendGetDatabaseIndex;
                        acadPlaceholder.FriendLetOwnerID          = base.ObjectID;
                        AcadPlaceholder acadPlaceholder2 = acadPlaceholder;
                        double          vdblObjectID     = nvdblObjectID;
                        AcadObject      nrobjAcadObject  = dobjAcadPlaceholderNormal2;
                        bool            flag             = acadPlaceholder2.FriendSetObjectID(vdblObjectID, ref nrobjAcadObject, ref nrstrErrMsg);
                        dobjAcadPlaceholderNormal2 = (AcadPlaceholder)nrobjAcadObject;
                        if (flag)
                        {
                            acadPlaceholder.FriendAddReactorsID(base.ObjectID, 330);
                            dblnValid = true;
                        }
                        else
                        {
                            hwpDxf_Functions.BkDXF_DebugPrint(acadPlaceholder.ObjectName + ": " + nrstrErrMsg);
                        }
                        acadPlaceholder = null;
                    }
                    if (dblnValid)
                    {
                        mobjAcadPlaceholderNormal = dobjAcadPlaceholderNormal2;
                        FriendAddItem(mobjAcadPlaceholderNormal.Name, mobjAcadPlaceholderNormal);
                        FriendLetDefaultID = mobjAcadPlaceholderNormal.ObjectID;
                    }
                }
                return(mobjAcadPlaceholderNormal);
            }
            AcadPlaceholder FriendAddAcadObjectPlaceholderNormal = default(AcadPlaceholder);

            return(FriendAddAcadObjectPlaceholderNormal);
        }