明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1221|回复: 4

帮我看看代码,怎么不能选择?

[复制链接]
发表于 2004-11-3 14:13:00 | 显示全部楼层 |阅读模式
On Error Resume Next
Dim sstext As AcadSelectionSet
Dim FilterType(0 To 5) As Integer
Dim FilterData(0 To 5) As Variant Set sstext = ThisDrawing.SelectionSets.Add("SSS1")
If Err Then
Err.Clear
Set sstext = ThisDrawing.SelectionSets.Item("SSS1")
End If

FilterType(0) = 0: FilterData(0) = "<or"
FilterType(1) = 0: FilterData(1) = "LINE"
FilterType(2) = 0: FilterData(2) = "Circle"
FilterType(3) = 0: FilterData(3) = ">or"
sstext.SelectOnScreen FilterType, FilterData 不能选择线了,看看什么问题?先谢了
发表于 2004-11-3 14:19:00 | 显示全部楼层
Dim FilterType(0 To 3) As Integer
Dim FilterData(0 To 3) As Variant
发表于 2004-11-3 16:27:00 | 显示全部楼层
Dim FilterType(0) As Integer
Dim FilterData(0) As Variant FilterType(0) = 0: FilterData(0) = Line,Circle"
 楼主| 发表于 2004-11-4 08:20:00 | 显示全部楼层
谢谢lzh741206斑竹
发表于 2004-11-5 17:05:00 | 显示全部楼层
FilterData(0) = Line,Circle"
为什么可以这样?不能FilterData(0 to 1)吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-27 22:42 , Processed in 0.173163 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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