乐筑天下

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

求助vb简单问题

[复制链接]

10

主题

37

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
77
发表于 2005-10-21 09:00:00 | 显示全部楼层 |阅读模式
我想在vb中直接控制画图,请问我该如何把vb与cad连接上呢???
回复

使用道具 举报

16

主题

909

帖子

8

银币

中流砥柱

Rank: 25

铜币
973
发表于 2005-10-21 09:17:00 | 显示全部楼层
Use the Help files....
In 2004
The following code example uses the Clear and Description properties of Err. If your coding environment does not support these properties, you will need to modify the example appropriately:
Sub Ch2_ConnectToAcad()    Dim acadApp As AcadApplication    On Error Resume Next        Set acadApp = GetObject(, "AutoCAD.Application.16")    If Err Then        Err.Clear        Set acadApp = CreateObject("AutoCAD.Application.16")        If Err Then            MsgBox Err.Description            Exit Sub        End If    End If    MsgBox "Now running " + acadApp.Name + _           " version " + acadApp.VersionEnd Sub
Next, set the document variable to the Document object in the AutoCAD application. The Document object is returned by the ActiveDocument property of the Application object.
Dim acadDoc as AcadDocumentSet acadDoc = acadApp.ActiveDocument
From this point on, use the acadDoc variable to reference the current AutoCAD drawing.


回复

使用道具 举报

10

主题

37

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
77
发表于 2005-10-23 20:35:00 | 显示全部楼层
thank  you
回复

使用道具 举报

0

主题

1

帖子

1

银币

初来乍到

Rank: 1

铜币
1
发表于 2005-11-3 12:31:00 | 显示全部楼层
我需要VB打开AutoCAD的详细程序
回复

使用道具 举报

4

主题

17

帖子

2

银币

初来乍到

Rank: 1

铜币
33
发表于 2005-11-3 16:51:00 | 显示全部楼层
已经很详细了
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-5 17:34 , Processed in 0.273941 second(s), 63 queries .

© 2020-2025 乐筑天下

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