DWG is composed of multiple closed polylines forming rectangular shapes. The length and width of the rectangular shapes vary. Drawn down the center of each closed polyline is an open polyline with a width sufficient to fill the shape of the rectangle. I'd like to remove these open polylines from the DWG.
I'm not a programmer so I'm looking for a solution that uses the menu or command line. I tried using the filter command but I couldn't find a way to filter on closed or width parameters of polylines.
Solved! Go to Solution.
Solved by dbroad. Go to Solution.
If you need to use the filter command, you are out of luck I think.
The qselect command allows you to select on whether a polyline is closed. Does that work?
Using LISP,
(ssget '((0 . "lwPolyline")(70 . 1)))
will get closed polylines.
@dbroad wrote:
....
(ssget '((0 . "lwPolyline")(70 . 1)))
will get closed polylines.
That will "see" only those without linetype generation enabled. Those with linetype generation enabled will have (70 . 129).
To find closed Polylines both with and without linetype generation enabled:
(ssget '((0 . "LWPOLYLINE") (-4 . "&") (70 . 1)))