明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1514|回复: 1

请教一选择集合的问题!

[复制链接]
发表于 2005-11-21 22:29:00 | 显示全部楼层 |阅读模式

acd.Application.Documents.Open (mypath(i))
acd.ActiveDocument.SendCommand "_zoom" & vbCr & "e" & vbCr
Set selec1 = acd.ActiveDocument.SelectionSets.Add("my date1")
selec1.Select acSelectionSetAll
For Each aline In selec1
Select Case aline.Layer
Case "控制线"
point1 = aline.EndPoint
End Select
Next
For k = 0 To 11
Set selec2 = acd.ActiveDocument.SelectionSets.Add("my date2")
selec2.Highlight (True)
pointc1(0) = point1(0) + point2(k, 0)
pointc1(1) = point1(1) + point2(k, 1)
pointc1(2) = point1(2)
pointc2(0) = point1(0) + point3(k, 0)
pointc2(1) = point1(1) + point3(k, 1)
pointc2(2) = point1(2)
Call selec2.Select(acSelectionSetWindow, pointc1, pointc2)
selec2.Highlight (True)
CADdate(i, k) = selec2.Item(0).TextString
selec2.Clear

Next k
acd.ActiveDocument.Close
Next i

我f8一步步看,点pointc1和pointc2的坐标都对的,但就是选不中图形,那为高手指点指点,小弟感激不尽!

发表于 2005-11-22 08:51:00 | 显示全部楼层

请贴图说明一下

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

本版积分规则

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

GMT+8, 2024-11-27 10:37 , Processed in 0.144544 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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