明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1417|回复: 1

有哪位高手能帮我如何用选择集引用

[复制链接]
发表于 2003-6-9 14:07 | 显示全部楼层 |阅读模式
'selections................
Dim ssetobj As AcadSelectionSet
Dim pickpnt1(0 To 2) As Double
Dim pickpnt2(0 To 2) As Double
Dim ftype(0) As Integer
Dim fdata(0) As Variant
ftype(0) = 8
fdata(0) = "0"
Dim filtertype As Variant
Dim filterdata As Variant
filtertype = ftype
filterdata = fdata

pickpnt1(0) = corecenpoint(0) - R1 - 1: pickpnt1(1) = corecenpoint(1) - CM / 2 - L / 2: pickpnt1(2) = 0
pickpnt2(0) = corecenpoint(0) - LM / 2 + 3: pickpnt2(1) = corecenpoint(1) - CM / 2 + L / 2 - DM: pickpnt2(2) = 0

Set ssetobj = 电容器CAD.ActiveDocument.SelectionSets.Add("objmold")
ssetobj.Select acSelectionSetCrossing, pickpnt1, pickpnt2, filtertype, filterdata
Dim pickedobjs As AcadEntity
Dim mirrorobjs
For Each pickedobjs In ssetobj
Set mirrorobjs = pickedobjs.Mirror(centerlinepnt3, centerlinepnt4)
Next
ssetobj.Delete
'................

每次都失败,无法引用
请发EMIL:verygood1979@163.com
发表于 2003-6-9 14:13 | 显示全部楼层

请问是哪句报错呀

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

本版积分规则

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

GMT+8, 2024-6-18 16:39 , Processed in 0.153812 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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