jwitteman
18th Nov 2010, 11:21 am
Hello, I want to select two types of blocks in my drawing with an insertion point somewhere between (let's say) -10,-10,0 and 10,10,0
The following code is working (without the insertion-point-part)
Dim ssNew as acadselectionset
set ssNew = thisdrawing.selectionsets.add("newset")
Dim FilterType(0 to 2) as integer
Dim FilterData(0 to 2) as variant
FilterType(0) = 0: FilterData(0) = "INSERT"
FilterType(1) = 2: FilterData(1) = "Blockname1, Blockname2"
FilterType(2) = 67: FilterData(2) = 0 'only modelspace...
ssNew.Select acSelectionSetAll, , , FilterType, FilterData
Adding the point -10,-10,0 and 10,10,0 right into the Select part won't work, because then the whole block needs to be in that area and I want just the insertion point. So somethjing with
FilterType(3) = 10: FilterData(3) = >=-10 and <=10 or something like that...
Anywone an idea?
Thanks in advance.
The following code is working (without the insertion-point-part)
Dim ssNew as acadselectionset
set ssNew = thisdrawing.selectionsets.add("newset")
Dim FilterType(0 to 2) as integer
Dim FilterData(0 to 2) as variant
FilterType(0) = 0: FilterData(0) = "INSERT"
FilterType(1) = 2: FilterData(1) = "Blockname1, Blockname2"
FilterType(2) = 67: FilterData(2) = 0 'only modelspace...
ssNew.Select acSelectionSetAll, , , FilterType, FilterData
Adding the point -10,-10,0 and 10,10,0 right into the Select part won't work, because then the whole block needs to be in that area and I want just the insertion point. So somethjing with
FilterType(3) = 10: FilterData(3) = >=-10 and <=10 or something like that...
Anywone an idea?
Thanks in advance.