乐筑天下

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

怎样用vb开发即时命令

[复制链接]

1

主题

2

帖子

1

银币

初来乍到

Rank: 1

铜币
6
发表于 2009-9-28 22:53:00 | 显示全部楼层 |阅读模式
各位高手,请教vba或者.net能开发出向CAD内部命令一样使用的命令么?想学习一下cad二次开发,还没有想好学哪个,请大侠不吝赐教,谢谢。
回复

使用道具 举报

72

主题

2726

帖子

9

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3014
发表于 2009-9-28 23:05:00 | 显示全部楼层
vba是不能直接实现的,必须借助Lisp
.NetApi没问题
如果有VB的基础,不如直接学VB.Net或C#
回复

使用道具 举报

1

主题

2

帖子

1

银币

初来乍到

Rank: 1

铜币
6
发表于 2009-10-28 23:06:00 | 显示全部楼层
谢谢飞狐兄,前段时间比较忙,一直没有来,我对vb还是比较熟悉,vba经常用,现在正准备抽取时间学习。net
回复

使用道具 举报

29

主题

128

帖子

8

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
244
发表于 2010-6-8 09:37:00 | 显示全部楼层
呵呵,我还提问说能不能利用VBA编写内部命令呢,看来不行啊,但是我想能否用VBA调用LISP的语句写一个命令,达到lisp的效果呢,请赐教
回复

使用道具 举报

8

主题

24

帖子

5

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
56
发表于 2010-6-28 17:11:00 | 显示全部楼层
选择用
Sends a command string from a VB or VBA application to the document for processing
Use a space or the ASCII carriage return character (vbCr) at the end of the command string to end the command; this is equivalent to pressing ENTER on the keyboard.
This method processes any AutoCAD command-line function, including LISP expressions.
If the drawing specified is not active, it will be made active.
This method is generally synchronous. However, if the command sent with this method requires any user interaction (such as picking a point on the screen) then this method will continue as soon as the user input begins. The command will then continue to be processed asynchronously.
When this method is called from an event handler it is processed asynchronously.
You should never use this method to issue a command for which there is an ActiveX method available. For example, do not use SendCommand "VBALOAD ". Instead, use the LoadDVB method.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-14 21:13 , Processed in 0.360286 second(s), 62 queries .

© 2020-2025 乐筑天下

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