明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1338|回复: 0

一个关于选择集的问题, 还请高手多多指导

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

Global Const GROUPCODE_4 As Integer = -4  
Global Const GROUPCODE0 As Integer = 0
Global Const GROUPCODE10 As Integer = 10
Dim dPth1(0 To 2) As Double            'POLYLINE起点座标配列
Dim dPth2(0 To 2) As Double            'POLYLINE尾点座标配列                  

      ReDim iFilterType(0 To 4) As Integer
      ReDim vFilterData(0 To 4) As Variant
     
      iFilterType(0) = GROUPCODE_4
      vFilterData(0) = "<OR"
     
      iFilterType(1) = GROUPCODE10
      vFilterData(1) = dPth1
     
      iFilterType(2) = GROUPCODE10
      vFilterData(2) = dPth2
     
     
iFilterType(3) = GROUPCODE_4
      vFilterData(3) = "OR>"
     
      iFilterType(4) = GROUPCODE0
      vFilterData(4) = "LWPOLYLINE"

    Set oSelSetTemp = ThisDrawing.SelectionSets.Add("New" & CStr(time))
    oSelSetTemp.Select acSelectionSetAll, , , iFilterType, vFilterData

假设dPth1,dPth2都已有值请问以上VBA代码要转换成ARX, 应该如何实现呀还请高手指点!

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

本版积分规则

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

GMT+8, 2024-11-29 17:35 , Processed in 0.132680 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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