Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filtering Polylines by CLOSED or WIDTH

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
jdelino
1861 Views, 3 Replies

Filtering Polylines by CLOSED or WIDTH

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.

Julius Delino
Intel Corp.
Windows 7, AutoCAD 2013
3 REPLIES 3
Message 2 of 4
dbroad
in reply to: jdelino

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.

Architect, Registered NC, VA, SC, & GA.
Message 3 of 4
geo.lima13
in reply to: dbroad

that helped me A LOT. Thank you

Message 4 of 4
Kent1Cooper
in reply to: dbroad


@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)))

Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost