• 大小: 28.91M
    文件类型: .rar
    金币: 2
    下载: 2 次
    发布日期: 2023-07-11
  • 语言: VB
  • 标签: 其他  

资源简介

AUTOCADVBA和VB.NET开发基础与实例教程-随书光盘.rar

资源截图

代码片段和文件信息

#region Namespaces
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Runtime;
#endregion
[assembly: ExtensionApplication(typeof(AcadNetAddinCS1.InitClass))]
[assembly: CommandClass(typeof(AcadNetAddinCS1.OptimizeClass))]
namespace AcadNetAddinCS1
{
    public class InitClass : IExtensionApplication
    {
        #region IExtensionApplication Members
        public void Initialize()
        {
            Editor ed= Application.DocumentManager.MdiActiveDocument.Editor;
            // 在AutoCAD命令行上显示一些信息,它们会在程序载入时被显示
            ed.WriteMessage(“程序开始初始化。“);
        }

        public void Terminate()
        {
            // 在Visual Studio 2010的输出窗口上显示程序结束的信息
            System.Diagnostics.Debug.WriteLine(
        “程序结束,你可以在里做一些程序的清理工作,如关闭AutoCAD文档“);
        }
        #endregion

        [CommandMethod(“InitCommand“)]
        public void InitCommand()
        {
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
            ed.WriteMessage(“Test“);
        }
    }
}

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

     文件       1442  2012-06-01 00:02  Chap01\AcadNetAddinCS1\acad.lsp

     文件       3343  2012-06-01 00:03  Chap01\AcadNetAddinCS1\AcadNetAddinCS1.csproj

     文件        356  2012-06-01 00:02  Chap01\AcadNetAddinCS1\AcadNetAddinCS1.csproj.user

     文件       1442  2012-06-01 00:02  Chap01\AcadNetAddinCS1\bin\Debug\acad.lsp

     文件       5632  2012-06-01 00:20  Chap01\AcadNetAddinCS1\bin\Debug\AcadNetAddinCS1.dll

     文件      15872  2012-06-01 00:20  Chap01\AcadNetAddinCS1\bin\Debug\AcadNetAddinCS1.pdb

     文件       1242  2012-06-01 09:55  Chap01\AcadNetAddinCS1\InitClass.cs

     文件        636  2012-06-01 00:03  Chap01\AcadNetAddinCS1\obj\Debug\AcadNetAddinCS1.csproj.FileListAbsolute.txt

     文件       5632  2012-06-01 00:20  Chap01\AcadNetAddinCS1\obj\Debug\AcadNetAddinCS1.dll

     文件      15872  2012-06-01 00:20  Chap01\AcadNetAddinCS1\obj\Debug\AcadNetAddinCS1.pdb

     文件       6494  2012-06-01 00:20  Chap01\AcadNetAddinCS1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      32717  2012-06-01 00:03  Chap01\AcadNetAddinCS1\obj\Debug\ResolveAssemblyReference.cache

     文件       1246  2012-06-01 08:55  Chap01\AcadNetAddinCS1\OptimizeClass.cs

     文件       1386  2012-06-01 00:02  Chap01\AcadNetAddinCS1\Properties\AssemblyInfo.cs

     文件        952  2012-06-01 00:02  Chap01\AcadNetAddinCS1\ReadMe.txt

     文件       3616  2012-06-01 00:15  Chap01\Chap01.sln

    ..A..H.     59904  2012-06-01 09:55  Chap01\Chap01.suo

     文件       4608  2012-06-01 00:01  Chap01\Hello\bin\Debug\Hello.dll

     文件       6517  2012-05-30 11:16  Chap01\Hello\bin\Debug\hello.iss

     文件      11776  2012-06-01 00:01  Chap01\Hello\bin\Debug\Hello.pdb

     文件     302786  2012-05-30 17:20  Chap01\Hello\bin\Debug\setup.exe

     文件       4608  2012-05-29 17:29  Chap01\Hello\bin\Release\Hello.dll

     文件      11776  2012-05-29 17:29  Chap01\Hello\bin\Release\Hello.pdb

     文件        589  2012-06-01 08:55  Chap01\Hello\Class1.cs

     文件       2606  2012-04-12 20:59  Chap01\Hello\Hello.csproj

     文件        356  2012-04-12 22:21  Chap01\Hello\Hello.csproj.user

     文件       5942  2012-06-01 00:20  Chap01\Hello\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        451  2012-04-12 20:59  Chap01\Hello\obj\Debug\Hello.csproj.FileListAbsolute.txt

     文件       4608  2012-06-01 00:01  Chap01\Hello\obj\Debug\Hello.dll

     文件      11776  2012-06-01 00:01  Chap01\Hello\obj\Debug\Hello.pdb

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

评论

共有 条评论