Exemple #1
0
        /// <summary>
        /// 导入dxf文件
        /// </summary>
        private void initDxf()
        {
            WaitForm.SetCaption("正在初始化函数...");
            cadr.InputFileName = inputFileName;
            cadr.MdbFileName   = mdbFileName;
            cadr.LayerTable    = layerTable;
            cadr.SymbolTable   = symbolTable;
            //cadr.LogWriter = logWriter;
            //cadr.FontTable=this.fontTable;
            cadr.CadReadInit();

            this.CadWriter = cadr.CadWriter;

            writeDemo.StrAngle       = strAngle;
            writeDemo.StrObjNum      = strObjNum;
            writeDemo.OutputFileName = outputFileName;
            writeDemo.MdbFileName    = mdbFileName;
            writeDemo.LayerTable     = layerTable;
            writeDemo.CurrentDs      = cadr.CurrentDs;
            //writeDemo.MinX=minX;
            //writeDemo.MinY=minY;
            //writeDemo.MaxX=maxX;
            //writeDemo.MaxY=maxY;
            //writeDemo.Precision=precision;
            //writeDemo.LogWriter = this.logWriter;

            this.gisWriter = (GisWriteFromDxf)writeDemo;
        }
Exemple #2
0
        private void BeginImport()
        {
            WaitForm.SetCaption("正在初始化导入配置,请稍后...");
            IDxfImport iMain = new ImportMain();

            iMain.StrObjNum      = "GeoObjNum";
            iMain.StrAngle       = "Dirction";
            iMain.MapScale       = "500";
            iMain.InputFileName  = dxfName;
            iMain.OutputFileName = mdbName;
            iMain.FileType       = "1";
            iMain.MdbFileName    = defMdbFileName;
            iMain.LayerTable     = defLayerTable;
            iMain.SymbolTable    = defSymbolTable;
            iMain.HeightScale    = 6;
            iMain.SpaceScale     = 75;

            iMain.ImportInit();
            cwd       = iMain.CadWriter;
            gisWriter = iMain.GisWriter;
            iMain.ImportRun();
        }