コード例 #1
0
ファイル: AcadLineTypes.cs プロジェクト: SoftBIM/DXFReader
 internal new void FriendQuit()
 {
     if (mblnOpened)
     {
         base.FriendQuit();
         mobjAcadLineTypeByBlock    = null;
         mobjAcadLineTypeByLayer    = null;
         mobjAcadLineTypeContinuous = null;
         mblnOpened = false;
     }
 }
コード例 #2
0
ファイル: AcadLineTypes.cs プロジェクト: SoftBIM/DXFReader
 internal AcadLineType FriendAddAcadObjectLineTypeContinuous(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
 {
     if (mobjAcadLineTypeContinuous == null)
     {
         string dstrLineTypeName = "Continuous";
         mobjAcadLineTypeContinuous = (AcadLineType)FriendGetItem(dstrLineTypeName);
         if (mobjAcadLineTypeContinuous == null)
         {
             mobjAcadLineTypeContinuous = FriendAddAcadObject(dstrLineTypeName, Conversions.ToDouble(Interaction.IIf(nvdblObjectID == -1.0, base.Database.FriendGetNextObjectID, nvdblObjectID)), ref nrstrErrMsg);
         }
     }
     return(mobjAcadLineTypeContinuous);
 }
コード例 #3
0
ファイル: AcadLineTypes.cs プロジェクト: SoftBIM/DXFReader
        internal AcadLineType FriendAddAcadObject(string vstrName, double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
        {
            AcadLineType dobjAcadLinetype4 = new AcadLineType();

            if (nvdblObjectID == -1.0)
            {
                nvdblObjectID = base.Database.FriendGetNextObjectID;
            }
            AcadLineType acadLineType = dobjAcadLinetype4;

            acadLineType.Name = vstrName;
            acadLineType.FriendLetNodeParentID     = base.NodeID;
            acadLineType.FriendLetApplicationIndex = base.FriendGetApplicationIndex;
            acadLineType.FriendLetDocumentIndex    = base.FriendGetDocumentIndex;
            acadLineType.FriendLetDatabaseIndex    = base.FriendGetDatabaseIndex;
            acadLineType.FriendLetOwnerID          = base.ObjectID;
            AcadLineType acadLineType2   = acadLineType;
            double       vdblObjectID    = nvdblObjectID;
            AcadObject   nrobjAcadObject = dobjAcadLinetype4;
            bool         flag            = acadLineType2.FriendSetObjectID(vdblObjectID, ref nrobjAcadObject, ref nrstrErrMsg);

            dobjAcadLinetype4 = (AcadLineType)nrobjAcadObject;
            bool dblnValid = default(bool);

            if (flag)
            {
                dblnValid = true;
            }
            else
            {
                hwpDxf_Functions.BkDXF_DebugPrint(acadLineType.ObjectName + ": " + nrstrErrMsg);
            }
            acadLineType = null;
            AcadLineType FriendAddAcadObject = default(AcadLineType);

            if (dblnValid)
            {
                AcadTableRecord robjAcadTableRecord = dobjAcadLinetype4;
                Add(ref robjAcadTableRecord, vstrName);
                dobjAcadLinetype4   = (AcadLineType)robjAcadTableRecord;
                FriendAddAcadObject = dobjAcadLinetype4;
            }
            dobjAcadLinetype4 = null;
            return(FriendAddAcadObject);
        }