コード例 #1
0
ファイル: DxfProxyEntity.cs プロジェクト: 15831944/WW
        internal static DxfClass smethod_2(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "ACAD_PROXY_ENTITY");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ObjectDBX Classes";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg0;
                dxfClass.MaintenanceVersion = (short)0;
                dxfClass.ProxyFlags         = ProxyFlags.None;
                dxfClass.CPlusPlusClassName = "AcDbProxyEntity";
                dxfClass.DxfName            = "ACAD_PROXY_ENTITY";
                dxfClass.ItemClassId        = (short)498;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #2
0
        internal static DxfClass smethod_16(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "ACDB_MLEADEROBJECTCONTEXTDATA_CLASS");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ObjectDBX Classes";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg1021;
                dxfClass.MaintenanceVersion = (short)0;
                dxfClass.ProxyFlags         = ProxyFlags.EraseAllowed | ProxyFlags.CloningAllowed | ProxyFlags.DisablesProxyWarningDialog;
                dxfClass.CPlusPlusClassName = "AcDbMLeaderObjectContextData";
                dxfClass.DxfName            = "ACDB_MLEADEROBJECTCONTEXTDATA_CLASS";
                dxfClass.ItemClassId        = (short)499;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #3
0
ファイル: DxfWipeoutVariables.cs プロジェクト: 15831944/WW
        internal static DxfClass smethod_2(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "WIPEOUTVARIABLES");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ISM";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg1015;
                dxfClass.MaintenanceVersion = (short)0;
                dxfClass.ProxyFlags         = ProxyFlags.R13FormatProxy;
                dxfClass.CPlusPlusClassName = "AcDbWipeoutVariables";
                dxfClass.DxfName            = "WIPEOUTVARIABLES";
                dxfClass.ItemClassId        = (short)499;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #4
0
ファイル: DxfMLeaderStyle.cs プロジェクト: 15831944/WW
        internal static DxfClass smethod_3(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "MLEADERSTYLE");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ACDB_MLEADERSTYLE_CLASS";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg1021;
                dxfClass.MaintenanceVersion = (short)25;
                dxfClass.ProxyFlags         = (ProxyFlags)4095;
                dxfClass.CPlusPlusClassName = "AcDbMLeaderStyle";
                dxfClass.DxfName            = "MLEADERSTYLE";
                dxfClass.ItemClassId        = (short)499;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #5
0
ファイル: DxfGeoData.cs プロジェクト: 15831944/WW
        internal static DxfClass smethod_2(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "PLOTSETTINGS");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ObjectDBX Classes";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg1021;
                dxfClass.MaintenanceVersion = (short)45;
                dxfClass.ProxyFlags         = (ProxyFlags)4095;
                dxfClass.CPlusPlusClassName = "AcDbGeoData";
                dxfClass.DxfName            = "GEODATA";
                dxfClass.ItemClassId        = (short)499;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #6
0
ファイル: DxfField.cs プロジェクト: 15831944/WW
        internal static DxfClass smethod_2(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "FIELD");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ObjectDBX Classes";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg1018;
                dxfClass.MaintenanceVersion = (short)0;
                dxfClass.ProxyFlags         = ProxyFlags.CloningAllowed | ProxyFlags.DisablesProxyWarningDialog;
                dxfClass.CPlusPlusClassName = "AcDbField";
                dxfClass.DxfName            = "FIELD";
                dxfClass.ItemClassId        = (short)499;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #7
0
        internal static DxfClass smethod_2(DxfClassCollection classes)
        {
            DxfClass dxfClass = DxfClass.GetClassWithDxfName(classes, "DATATABLE");

            if (dxfClass == null)
            {
                dxfClass = new DxfClass();
                dxfClass.ApplicationName    = "ObjectDBX Classes";
                dxfClass.ClassNumber        = (short)(500 + classes.Count);
                dxfClass.DwgVersion         = DwgVersion.Dwg1015;
                dxfClass.MaintenanceVersion = (short)20;
                dxfClass.ProxyFlags         = ProxyFlags.None;
                dxfClass.CPlusPlusClassName = "AcDbDataTable";
                dxfClass.DxfName            = "DATATABLE";
                dxfClass.ItemClassId        = (short)499;
                classes.Add(dxfClass);
            }
            return(dxfClass);
        }
コード例 #8
0
        /// <summary>
        /// Read the CLASSES section of the DXF file.
        /// </summary>
        /// <returns></returns>
        public DxfClassCollection ReadClasses()
        {
            //Get the needed handler
            m_reader = getSectionHandler(DxfFileToken.ClassesSection);

            DxfClassCollection classes = new DxfClassCollection();

            //Advance to the first value in the section
            m_reader.ReadNext();
            //Loop until the section ends
            while (!m_reader.EndSectionFound)
            {
                if (m_reader.LastValueAsString == DxfFileToken.ClassEntry)
                {
                    classes.Add(readClass());
                }
                else
                {
                    m_reader.ReadNext();
                }
            }

            return(classes);
        }
コード例 #9
0
        /// <summary>
        /// Read the CLASSES section of the DXF file.
        /// </summary>
        /// <returns></returns>
        private DxfClassCollection readClasses()
        {
            //Get the needed handler
            this._reader = this.goToSection(DxfFileToken.ClassesSection);

            DxfClassCollection classes = new DxfClassCollection();

            //Advance to the first value in the section
            this._reader.ReadNext();
            //Loop until the section ends
            while (!this._reader.EndSectionFound)
            {
                if (this._reader.LastValueAsString == DxfFileToken.ClassEntry)
                {
                    classes.Add(this.readClass());
                }
                else
                {
                    this._reader.ReadNext();
                }
            }

            return(classes);
        }