明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1422|回复: 1

求助:看《AutoCAD VBA 开发精彩实例》遇到的问题

[复制链接]
发表于 2004-10-13 11:34:00 | 显示全部楼层 |阅读模式
几天看到了关于选择集的部分,可是以下代码不明白 Public Sub UseSelectionSet() '创建在实例中使用的对象
Dim pt1(0 To 2) As Double
Dim pt2(0 To 2) As Double
Dim pt3(0 To 2) As Double
Dim pt4(0 To 2) As Double
Dim pt5(0 To 2) As Double
Dim ObjLine As AcadLine
Dim objCir As AcadCircle
Dim objArc As AcadArc

pt1(0) = 0: pt1(1) = 0: pt1(2) = 0 ?????
pt2(0) = 5: pt2(1) = 8: pt2(2) = 0 ?????
pt3(0) = 10: pt3(1) = 0: pt3(2) = 0 ?????
pt4(0) = 15: pt4(1) = 8: pt4(2) = 0 ?????
pt5(0) = 20: pt5(1) = 0: pt5(2) = 0 ????? 请问以上几句是什么意思啊?“:”干什么的呢?

'圆形
Set objCir = AddCirCR(pt1, 1)
AddCirCR pt3, 3
AddCirCR pt5, 5
'直线
Set ObjLine = AddLine(pt1, pt2)
AddLine pt4, pt5
'圆弧
Set objArc = AddArc3Pt(pt1, pt3, pt4) 我是新新人,希望大家多帮助!!
发表于 2004-10-13 11:41:00 | 显示全部楼层
pt1(0) = 0: pt1(1) = 0: pt1(2) = 0 和
pt1(0) = 0
pt1(1) = 0
pt1(2) = 0
相同 “:”表示在一行中分割语句
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-28 00:30 , Processed in 0.176961 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表