Example #1
0
 internal new void FriendQuit()
 {
     if (mblnOpened)
     {
         base.FriendQuit();
         mobjAcadLayer0 = null;
         mblnOpened     = false;
     }
 }
Example #2
0
 internal AcadLayer FriendAddAcadObjectLayer0(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
 {
     if (mobjAcadLayer0 == null)
     {
         string dstrLayerName = "0";
         mobjAcadLayer0 = (AcadLayer)FriendGetItem(dstrLayerName);
         if (mobjAcadLayer0 == null)
         {
             mobjAcadLayer0 = FriendAddAcadObject(dstrLayerName, Conversions.ToDouble(Interaction.IIf(nvdblObjectID == -1.0, base.Database.FriendGetNextObjectID, nvdblObjectID)), ref nrstrErrMsg);
             if (mobjAcadLayer0 != null)
             {
                 mobjAcadLayer0.FriendLetPlotStyleNameObjectID = base.Database.Dictionaries.PlotStyleNames.PlaceholderNormal.ObjectID;
             }
         }
     }
     return(mobjAcadLayer0);
 }
Example #3
0
        internal AcadLayer FriendAddAcadObject(string vstrName, double nvdblObjectID = -1.0, ref string nrstrErrMsg = "")
        {
            AcadLayer dobjAcadLayer4 = new AcadLayer();

            if (nvdblObjectID == -1.0)
            {
                nvdblObjectID = base.Database.FriendGetNextObjectID;
            }
            AcadLayer acadLayer = dobjAcadLayer4;

            acadLayer.Name = vstrName;
            acadLayer.FriendLetNodeParentID     = base.NodeID;
            acadLayer.FriendLetApplicationIndex = base.FriendGetApplicationIndex;
            acadLayer.FriendLetDocumentIndex    = base.FriendGetDocumentIndex;
            acadLayer.FriendLetDatabaseIndex    = base.FriendGetDatabaseIndex;
            acadLayer.FriendLetOwnerID          = base.ObjectID;
            AcadLayer  acadLayer2      = acadLayer;
            double     vdblObjectID    = nvdblObjectID;
            AcadObject nrobjAcadObject = dobjAcadLayer4;
            bool       flag            = acadLayer2.FriendSetObjectID(vdblObjectID, ref nrobjAcadObject, ref nrstrErrMsg);

            dobjAcadLayer4 = (AcadLayer)nrobjAcadObject;
            bool dblnValid = default(bool);

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

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