资源简介

cad格式转shp格式,用c# + arcengine实现,可能有部分小问题,

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.DataSourcesFile;
using System.IO;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.esriSystem;

namespace dwg2shp
{
    public partial class DwgToShpForm : Form
    {
        private string strFile = ““;  //dwg文件名称
        private string filePath = ““; //存储dwg文件路径
        private IWorkspace outWorkspace = null;  //输出工作空间
        private string outShpPath = ““;   //shp文件输出目录
        private IMapControl2 pMapControl = null;

        public DwgToShpForm()
        {
            InitializeComponent();
        }

        public DwgToSh

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      24576  2010-05-19 21:46  dwg2shp\dwg2shp\bin\Debug\dwg2shp.exe

     文件      28160  2010-05-19 21:46  dwg2shp\dwg2shp\bin\Debug\dwg2shp.pdb

     文件       5632  2005-11-11 22:25  dwg2shp\dwg2shp\bin\Debug\dwg2shp.vshost.exe

     文件       6154  2010-05-19 21:47  dwg2shp\dwg2shp\dwg2shp.cs

     文件       4951  2010-05-19 21:41  dwg2shp\dwg2shp\dwg2shp.csproj

     文件       6022  2010-05-19 21:46  dwg2shp\dwg2shp\dwg2shp.Designer.cs

     文件       6288  2010-05-19 21:46  dwg2shp\dwg2shp\dwg2shp.resx

     文件        902  2010-05-19 21:46  dwg2shp\dwg2shp\obj\Debug\dwg2shp.csproj.GenerateResource.Cache

     文件        588  2010-05-19 21:46  dwg2shp\dwg2shp\obj\Debug\dwg2shp.DwgToShpForm.resources

     文件      24576  2010-05-19 21:46  dwg2shp\dwg2shp\obj\Debug\dwg2shp.exe

     文件      28160  2010-05-19 21:46  dwg2shp\dwg2shp\obj\Debug\dwg2shp.pdb

     文件        180  2010-05-19 20:35  dwg2shp\dwg2shp\obj\Debug\dwg2shp.Properties.Resources.resources

     文件     112510  2010-05-19 21:31  dwg2shp\dwg2shp\obj\Debug\ResolveAssemblyReference.cache

     文件        275  2010-05-19 21:46  dwg2shp\dwg2shp\obj\dwg2shp.csproj.FileList.txt

     文件        504  2010-05-19 20:39  dwg2shp\dwg2shp\Program.cs

     文件       1186  2010-05-19 20:18  dwg2shp\dwg2shp\Properties\AssemblyInfo.cs

     文件       2868  2010-05-19 20:18  dwg2shp\dwg2shp\Properties\Resources.Designer.cs

     文件       5612  2010-05-19 20:18  dwg2shp\dwg2shp\Properties\Resources.resx

     文件       1090  2010-05-19 20:18  dwg2shp\dwg2shp\Properties\Settings.Designer.cs

     文件        249  2010-05-19 20:18  dwg2shp\dwg2shp\Properties\Settings.settings

     文件        910  2010-05-19 20:18  dwg2shp\dwg2shp.sln

    ..A..H.     16384  2010-05-19 21:48  dwg2shp\dwg2shp.suo

     目录          0  2010-05-19 20:24  dwg2shp\dwg2shp\obj\Debug\Refactor

     目录          0  2010-05-19 20:18  dwg2shp\dwg2shp\obj\Debug\TempPE

     目录          0  2010-05-19 20:39  dwg2shp\dwg2shp\bin\Debug

     目录          0  2010-05-19 21:46  dwg2shp\dwg2shp\obj\Debug

     目录          0  2010-05-19 21:41  dwg2shp\dwg2shp\bin

     目录          0  2010-05-19 20:35  dwg2shp\dwg2shp\obj

     目录          0  2010-05-19 20:18  dwg2shp\dwg2shp\Properties

     目录          0  2010-05-19 21:47  dwg2shp\dwg2shp

............此处省略4个文件信息

评论

共有 条评论