But is it generally speaking possible to filter for groupcode sequences? Let's say you want to select rectangles (lwpolylines) with at least two filleted corners. Can this be done with (ssget)?
After a very brief test, it would seem to appear that this is indeed possible.
To test, I created two simple LWPolylines:
'(
(0 . "LWPOLYLINE")
(100 . "AcDbEntity")
(100 . "AcDbPolyline")
(90 . 3)
(70 . 1)
(10 0.0 0.0)
(10 1.0 0.0)
(10 1.0 1.0)
)
)
'(
(0 . "LWPOLYLINE")
(100 . "AcDbEntity")
(100 . "AcDbPolyline")
(90 . 3)
(70 . 1)
(10 0.0 0.0)
(10 1.0 0.0)
(10 1.0 2.0)
)
)
)
Then used the following
ssget filter to make a selection:
(sssetfirst nil (ssget "_X" '
((0 .
"LWPOLYLINE") (10 1.0 0.0) (10 1.0 1.0)))) )
The result was as expected with only the first LWPolyline being selected by the filter, though, this simple test obviously isn't conclusive to encompass the claim for all DXF group codes and values.