乐筑天下

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

请教一选择集合的问题!

[复制链接]

1

主题

1

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 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的坐标都对的,但就是选不中图形,那为高手指点指点,小弟感激不尽!
回复

使用道具 举报

72

主题

2726

帖子

9

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3014
发表于 2005-11-22 08:51:00 | 显示全部楼层
请贴图说明一下
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-4 18:32 , Processed in 0.453861 second(s), 56 queries .

© 2020-2025 乐筑天下

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