[英]Template in Visual Studio 2019 for Autocad
I want to have a template in visual studio 2019 for Autocad 2017.我想在 Visual Studio 2019 中有一个用于 Autocad 2017 的模板。
My goal is to create a C# ProjectTemplate for AutoCAD in Visual Studio 2019, template allowing to automatically launch AutoCAD by loading the DLL from Visual Studio in Debug mode.我的目标是在 Visual Studio 2019 中为 AutoCAD 创建一个 C# ProjectTemplate,该模板允许通过在调试模式下从 Visual Studio 加载 DLL 来自动启动 AutoCAD。
I followed the instructions below我按照下面的说明
http://gilecad.azurewebsites.net/Resources/Template_Csharp_EN.pdf http://gilecad.azurewebsites.net/Resources/Template_Csharp_EN.pdf
Autocad doesn't load "dll" ,ribbon is missing and its command line is as follows: Autocad 不加载“dll”,功能区丢失,其命令行如下:
....
....
Regenerating model.
再生模型。
AutoCAD menu utilities loaded.
加载了 AutoCAD 菜单实用程序。 Cancel
取消
Command: Cancel
命令:取消
_RIBBON
_丝带
Unknown command "RIBBON".
未知命令“RIBBON”。 Press F1 for help.
按 F1 寻求帮助。
COMMANDLINE
命令行
Command:
命令:
Command:
命令:
Command: netload Assembly file name: "AutoCadPlugin2017.dll" Cancel
命令:netload 程序集文件名:“AutoCadPlugin2017.dll”取消
Cancel "AutoCadPlugin2017.dll"
取消“AutoCadPlugin2017.dll”
"AutoCadPlugin2017.dll
"AutoCadPlugin2017.dll
For me it's not necessarily to use "Add a script to load the application at startup of AutoCAD " at page 4. Just jump to Project-> Export Template.对我来说,不一定要使用第 4 页的“添加脚本以在 AutoCAD 启动时加载应用程序”。只需跳转到项目-> 导出模板。 Also you can manage debugging program manually via Properties->Debud->Start external program and browse to Acad.exe.
您也可以通过 Properties->Debud->Start external program 手动管理调试程序并浏览到 Acad.exe。 The point is that you my have few versions of Autocad or Civil and you may need to choose specific one for different applications.
关键是您的 Autocad 或 Civil 版本很少,您可能需要为不同的应用程序选择特定的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.