Sub test()
Dim pnt As Variant ' Return a point using a prompt
pnt = ThisDrawing.Utility.GetPoint(, "Select point:")
ThisDrawing.SendCommand "(setq intx " & VBA.str$(pnt(0)) & ")" & vbCr
ThisDrawing.SendCommand "(setq inty " & VBA.str$(pnt(1)) & ")" & vbCr
End Sub
提示:
Command: Select point: Command: (setq intx 114.745014145691) 114.745
Command: (setq inty 68.3292167221245) 68.3292
lisp传递变量给vba
可以lisp传递变量给AutoCAD系统变量user,然后在用vba读取该变量
[本日志由 tiancao1001 于 2008-10-29 08:46 AM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! | |||
作者: | 用户:
密码: 注册? 验证: |
||
评论:
禁止表情 禁止UBB 禁止图片 识别链接 识别关键字 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||