My impression of select All only select what ever on the layer that thawn and
on (show on screen).
I affraid that to do an equivalent of (ssget "x") in VB(A) we have to loop
through every object in the AcadDocument.
....
Dim ent As object
Dim sset as AcadSelectionset
Dim ssTemp() As Object
Dim i As Integer
....
i = 0
set sset = aDoc.selectionset.add("ss")
For Each ent in aDoc
if meetcond(ent) then
Redim Preserve ssTemp(i)
ssTemp(i) = ent
i = i + 1
end if
next
sset.Add ssTemp
These codes just pop out of my mine, not yet test. The meetcond should be a
function return a true if ent is not layer, style...(table definition object).
I like to see your input
Kenneth Tam
I'm just getting into this VBA stuff after _years_ of LISP, so for what it's
worth...
According to Acad VBA Help, Appendix A: AutoLISP and Automation Comparison:
ssget =
AutoCAD.Application.ActiveDocument.SelectionSets.SelectionSet.SelectOnScreen
method should get you ther.
Hope it works...let me know.
Frank
Bill Kimsey wrote in message <356324...@rci-metiair.com>...
Set ssetObj = ThisDrawing.SelectionSets.Add("ss1")
ssetObj.Select acSelectionSetAll