乐筑天下

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

[编程交流] AutoCAD VBA, Showing the AutoC

[复制链接]

170

主题

347

帖子

174

银币

中流砥柱

Rank: 25

铜币
870
发表于 2022-7-6 14:13:20 | 显示全部楼层 |阅读模式
When the following VBA routine ends it shows
the VBA design editor.
 
'Zoom Window
Private Sub CommandButton1_Click()
Dim vPt1 As Variant
Dim vPt2 As Variant
Me.hide
vPt1 = ThisDrawing.Utility.GetPoint(, "Select Point 1")
vPt2 = ThisDrawing.Utility.GetPoint(, "Select Point 2")
ZoomWindow vPt1, vPt2
'Me.Show
End Sub
 
How can I get this routine to end showing the AutoCAD editor instead
of the VBA design editor when this routine ends?
 
Thank you,
回复

使用道具 举报

37

主题

125

帖子

87

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
190
发表于 2022-7-6 16:01:44 | 显示全部楼层
You could probably use
 
  1.   activedocument.sendcommand("vbaide\r")
 
Can't remeber the ascii character for return you may have to replace the \r with it
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-5 03:03 , Processed in 0.639364 second(s), 56 queries .

© 2020-2025 乐筑天下

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