Select Method syntax

Select Method syntax

Anonymous
Not applicable
367 Views
2 Replies
Message 1 of 3

Select Method syntax

Anonymous
Not applicable


What is the syntax to use for selecting objects by applying a filter
across the entire drawing?

I am looking for the equivalent of this Lisp statement in VBA:

(setq ss (ssget "X" (list (cons 0 "INSERT")(cons 2 "TITLEVV"))))


For example, I have now substituted the code to scan the entire drawing
by doing a crossing selection set across the extents of the drawing but
obviously, this is not the way I would like it to work.

> Dim FilterType(1) As Integer
> Dim FilterData(1) As Variant
> Dim minExt As Variant
> Dim maxExt As Variant
>
> minExt = glDoc.GetVariable("EXTMIN")
> maxExt = glDoc.GetVariable("EXTMAX")
>
> FilterType(0) = 0
> FilterData(0) = "INSERT"
>
> FilterType(1) = 2
> FilterData(1) = "TITLEVV"
>
> ' Add entities to a selection set by prompting user to select on the
> screen
> glAcadApp.ZoomExtents
>
> SS.Select acSelectionSetCrossing, minExt, maxExt, FilterType,
> FilterData


Regards
Rakesh

--

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter
0 Likes
368 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
SelSet.Select acSelectionSetAll, , , FilterType, FilterData
0 Likes
Message 3 of 3

Anonymous
Not applicable
acSelectionSetAll, to my knowledge, selects All objects in the current
viewport only. If the objects happen to be outside the current viewport
or on frozen layers, it will not get selected.

Lisp has the (ssget "X" ....) filter to do exactly this. I am still
unable to find out what the VBA equivalent is.

Regards
Rakesh


tsigwing wrote:
> SelSet.Select acSelectionSetAll, , , FilterType, FilterData


--

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter
0 Likes