资源简介

用Csharp做的AutoCAD的二次开发,实现dwg文件的读取显示,保存

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DWG
{
    public partial class frmReadDWG : Form
    {
        public frmReadDWG()
        {
            InitializeComponent();
        }
        private void btnSaveBmp_Click(object sender EventArgs e)
        {
            try
            {
                if (axDDVueDWG.SaveAsBMP(“C:\\Documents and Settings\\Administrator\\桌面\\czl.bmp“) == true)
                {
                    MessageBox.Show(“保存BMP成功!!!“);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-12-27 16:44  DWG\
     目录           0  2010-12-27 16:44  DWG\DWG\
     文件         899  2010-12-26 22:53  DWG\DWG.sln
     文件       32768  2010-12-26 23:55  DWG\DWG.suo
     目录           0  2010-12-27 16:44  DWG\DWG\bin\
     目录           0  2011-03-24 23:07  DWG\DWG\bin\Debug\
     文件       40960  2010-12-26 23:03  DWG\DWG\bin\Debug\AxInterop.DDVueLib.dll
     文件       41651  2005-12-09 14:14  DWG\DWG\bin\Debug\czl.dwg
     文件       10240  2010-12-26 23:57  DWG\DWG\bin\Debug\DWG.exe
     文件       26112  2010-12-26 23:57  DWG\DWG\bin\Debug\DWG.pdb
     文件       14328  2010-12-26 22:53  DWG\DWG\bin\Debug\DWG.vshost.exe
     文件         490  2007-07-21 01:33  DWG\DWG\bin\Debug\DWG.vshost.exe.manifest
     文件       45056  2010-12-26 23:03  DWG\DWG\bin\Debug\Interop.DDVueLib.dll
     文件        4684  2010-12-26 23:04  DWG\DWG\DWG.csproj
     文件        1748  2010-12-26 23:59  DWG\DWG\frmReadDWG.cs
     文件        4755  2010-12-26 23:57  DWG\DWG\frmReadDWG.Designer.cs
     文件        6359  2010-12-26 23:57  DWG\DWG\frmReadDWG.resx
     目录           0  2010-12-27 16:44  DWG\DWG\obj\
     目录           0  2010-12-27 16:44  DWG\DWG\obj\Debug\
     文件       40960  2010-12-26 23:03  DWG\DWG\obj\Debug\AxInterop.DDVueLib.dll
     文件        1140  2010-12-26 23:55  DWG\DWG\obj\Debug\DWG.csproj.FileListAbsolute.txt
     文件         852  2010-12-26 23:57  DWG\DWG\obj\Debug\DWG.csproj.GenerateResource.Cache
     文件         547  2010-12-26 23:03  DWG\DWG\obj\Debug\DWG.csproj.ResolveComReference.cache
     文件       10240  2010-12-26 23:57  DWG\DWG\obj\Debug\DWG.exe
     文件         624  2010-12-26 23:57  DWG\DWG\obj\Debug\DWG.frmReadDWG.resources
     文件       26112  2010-12-26 23:57  DWG\DWG\obj\Debug\DWG.pdb
     文件         180  2010-12-26 23:04  DWG\DWG\obj\Debug\DWG.Properties.Resources.resources
     文件       45056  2010-12-26 23:03  DWG\DWG\obj\Debug\Interop.DDVueLib.dll
     目录           0  2010-12-27 16:44  DWG\DWG\obj\Debug\Refactor\
     目录           0  2010-12-27 16:44  DWG\DWG\obj\Debug\TempPE\
     文件         489  2010-12-26 23:03  DWG\DWG\Program.cs
............此处省略6个文件信息

评论

共有 条评论