乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 136|回复: 5

[编程交流] Visual Basic 2013 & AutoCAD 20

[复制链接]

4

主题

11

帖子

7

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-6 22:00:08 | 显示全部楼层 |阅读模式
I wrote a couple of VB applications a few years ago using VB 2008 express and Acad 2012 if memory serves. I am trying to get back into it using VB 2013 express and Acad 2015, but I am not having much luck.
 
 
I have downloaded and referenced the objectarx 2015 files, but I am not able to successfully launch Acad when debugging. Searching for answers on the internet yields results using older versions of both AutoCAD and VB express; do I need to use older versions as well?
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 22:20:58 | 显示全部楼层
Greetings from a few hours North.
 
By VB 2013 Express, did you mean VS Community version? There hasn't been a standalone VB Express version since +/- 2010.
 
I use VS 2013 (full version; thank you BizSpark!), to develop for AutoCAD 2012-2016+Alphas.
 
Rather than manually configuring your Solution's Assembly References, remembering to set Copy Local == false, etc... Why not just use the AutoCAD .NET Wizard, which will automagically map the selected Acad.exe (and vertical?) to the StartupApplication XmlNode within .Proj for you?
 
 
 
Cheers
回复

使用道具 举报

4

主题

11

帖子

7

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-6 22:30:07 | 显示全部楼层
Yes, I'm using VS Express 2013 and I am settings copy locals to "false". I did download a wizard from the Acad site, but it only installed a template in the C# section of VS; is there a template for visual basic?
 
 
Thank you.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 22:37:28 | 显示全部楼层
 
Well, you should learn C# anyway, as there are substantially more code samples, and fellow programmers that use C# over VB, for it's inherent shortcoming, difficulty with Extension Methods, etc. I too started with VB, quickly learned C#, and haven't looked back.
 
That said, you may want to ensure that you've downloaded the newest Wizard, as I ran into a similar issue some time ago, which has since been fixed:
 
http://forums.autodesk.com/t5/net/autocad-2015-net-wizard/td-p/5169991
 
 
Cheers
回复

使用道具 举报

4

主题

11

帖子

7

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-6 22:50:37 | 显示全部楼层
Thank you for the link and your thoughts regarding my issue; i might look into c# if i can't get vb up and running.
 
Thanks again.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 23:07:23 | 显示全部楼层
 
You're welcome, kduck63; I'm happy to help.
 
 
 
Also, this albeit old thread may be of use:
 
http://www.cadtutor.net/forum/showthread.php?69646-Where-to-start-with-.Net
 
 
 
Cheers
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-4 12:49 , Processed in 0.773208 second(s), 75 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表