資源簡(jiǎn)介
AUTOCAD VBA&VB;.NET 開發(fā)基礎(chǔ)與實(shí)例教程 C#第二版隨書光盤
代碼片段和文件信息
#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命令行上顯示一些信息,它們會(huì)在程序載入時(shí)被顯示
????????????ed.WriteMessage(“程序開始初始化?!埃?
????????}
????????public?void?Terminate()
????????{
????????????//?在Visual?Studio?2010的輸出窗口上顯示程序結(jié)束的信息
????????????System.Diagnostics.Debug.WriteLine(
????????“程序結(jié)束,你可以在里做一些程序的清理工作,如關(guān)閉AutoCAD文檔“);
????????}
????????#endregion
????????[CommandMethod(“InitCommand“)]
????????public?void?InitCommand()
????????{
????????????Editor?ed?=?Application.DocumentManager.MdiActiveDocument.Editor;
????????????ed.WriteMessage(“Test“);
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1442??2012-06-01?00:02??我的光盤?(H)\Chap01\AcadNetAddinCS1\acad.lsp
?????文件???????3343??2012-06-01?00:03??我的光盤?(H)\Chap01\AcadNetAddinCS1\AcadNetAddinCS1.csproj
?????文件????????356??2012-06-01?00:02??我的光盤?(H)\Chap01\AcadNetAddinCS1\AcadNetAddinCS1.csproj.user
?????文件???????1442??2012-06-01?00:02??我的光盤?(H)\Chap01\AcadNetAddinCS1\bin\Debug\acad.lsp
?????文件???????5632??2012-06-01?00:20??我的光盤?(H)\Chap01\AcadNetAddinCS1\bin\Debug\AcadNetAddinCS1.dll
?????文件??????15872??2012-06-01?00:20??我的光盤?(H)\Chap01\AcadNetAddinCS1\bin\Debug\AcadNetAddinCS1.pdb
?????文件???????1242??2012-06-01?09:55??我的光盤?(H)\Chap01\AcadNetAddinCS1\InitClass.cs
?????文件????????636??2012-06-01?00:03??我的光盤?(H)\Chap01\AcadNetAddinCS1\obj\Debug\AcadNetAddinCS1.csproj.FileListAbsolute.txt
?????文件???????5632??2012-06-01?00:20??我的光盤?(H)\Chap01\AcadNetAddinCS1\obj\Debug\AcadNetAddinCS1.dll
?????文件??????15872??2012-06-01?00:20??我的光盤?(H)\Chap01\AcadNetAddinCS1\obj\Debug\AcadNetAddinCS1.pdb
?????文件???????6494??2012-06-01?00:20??我的光盤?(H)\Chap01\AcadNetAddinCS1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????32717??2012-06-01?00:03??我的光盤?(H)\Chap01\AcadNetAddinCS1\obj\Debug\ResolveAssemblyReference.cache
?????文件???????1246??2012-06-01?08:55??我的光盤?(H)\Chap01\AcadNetAddinCS1\OptimizeClass.cs
?????文件???????1386??2012-06-01?00:02??我的光盤?(H)\Chap01\AcadNetAddinCS1\Properties\AssemblyInfo.cs
?????文件????????952??2012-06-01?00:02??我的光盤?(H)\Chap01\AcadNetAddinCS1\ReadMe.txt
?????文件???????3616??2012-06-01?00:15??我的光盤?(H)\Chap01\Chap01.sln
????..A..H.?????59904??2012-06-01?09:55??我的光盤?(H)\Chap01\Chap01.suo
?????文件???????4608??2012-06-01?00:01??我的光盤?(H)\Chap01\Hello\bin\Debug\Hello.dll
?????文件???????6517??2012-05-30?11:16??我的光盤?(H)\Chap01\Hello\bin\Debug\hello.iss
?????文件??????11776??2012-06-01?00:01??我的光盤?(H)\Chap01\Hello\bin\Debug\Hello.pdb
?????文件?????302786??2012-05-30?17:20??我的光盤?(H)\Chap01\Hello\bin\Debug\setup.exe
?????文件???????4608??2012-05-29?17:29??我的光盤?(H)\Chap01\Hello\bin\Release\Hello.dll
?????文件??????11776??2012-05-29?17:29??我的光盤?(H)\Chap01\Hello\bin\Release\Hello.pdb
?????文件????????589??2012-06-01?08:55??我的光盤?(H)\Chap01\Hello\Class1.cs
?????文件???????2606??2012-04-12?20:59??我的光盤?(H)\Chap01\Hello\Hello.csproj
?????文件????????356??2012-04-12?22:21??我的光盤?(H)\Chap01\Hello\Hello.csproj.user
?????文件???????5942??2012-06-01?00:20??我的光盤?(H)\Chap01\Hello\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????451??2012-04-12?20:59??我的光盤?(H)\Chap01\Hello\obj\Debug\Hello.csproj.FileListAbsolute.txt
?????文件???????4608??2012-06-01?00:01??我的光盤?(H)\Chap01\Hello\obj\Debug\Hello.dll
?????文件??????11776??2012-06-01?00:01??我的光盤?(H)\Chap01\Hello\obj\Debug\Hello.pdb
............此處省略2562個(gè)文件信息
評(píng)論
共有 條評(píng)論