Message 1 of 3
Select Method syntax
Not applicable
05-20-2003
12:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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