乐筑天下

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

[编程交流] 从VB启动AutoCAD。NET Pro

[复制链接]

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 23:17:25 | 显示全部楼层
... Now you just need to code your LISP into .NET  
 
 
Congrats, Bill!
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 23:22:28 | 显示全部楼层
Before I forget, to make your code more 'portable' there's a couple of things you can do:
 
Instead of coding the entire solution in Main(), consider writing a Method that accepts two arguments, a DWT as String, and a LSP as String. This Method can go into your code library, and can easily be added as a Reference Assembly to any other solution.
 
Going one step further, these arguments as Strings may not require the file path, provided they both reside within the Support File Search Path (SFSP), as you can use the HostApplicationServices.FindFile() Method... As shown in this thread. Gile's awesome!  
 
HTH
回复

使用道具 举报

180

主题

639

帖子

463

银币

中流砥柱

Rank: 25

铜币
897
发表于 2022-7-6 23:24:32 | 显示全部楼层
As for moving all the LISP to .NET, I'd do it except the big boss will come in and ask me why I'm reinventing the wheel. In other words, if it ain't broke, don't fix it.
 
And as for using variables for the DWT, etc...that's a great idea and I've already got that working. The LISP file and the drawing template which this will open are all based on whatever the first part of my project found in the text file it read. It's coming together nicely. Thanks again for the very helpful advice.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 23:30:10 | 显示全部楼层
 
Happy to have helped, Bill.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-4 11:54 , Processed in 0.581473 second(s), 58 queries .

© 2020-2025 乐筑天下

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