Results 1 to 3 of 3

Thread: Help with modification of lisp (filter out closed polylines)

  1. #1
    Login to Give a bone
    0

    Default Help with modification of lisp (filter out closed polylines)

    The attached lisp selects all polylines in a drawing (open or closed) and writes a coordinate list for each one in a file. I need to modify the lisp so it will do the job for open polylines only. The closed polylines should be filtered out (not included in the output file). Can anybody help?

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Login to Give a bone
    0

    Default Re: Help with modification of lisp (filter out closed polylines)

    Solved it like this (maybe it helps):
    (defun cgpolydesc (/ lst ss i en obj)
    (and (setq ss (ssget "X"
    '((0 . "LWPOLYLINE") ; object Name
    (-4 . "<NOT") (70 . 1) (-4 . "NOT>") ;polylines are NOT CLOSED
    )
    )
    )

  3. #3
    Member
    Join Date
    2016-05
    Posts
    19
    Login to Give a bone
    0

    Default Re: Help with modification of lisp (filter out closed polylines)

    all closed polylines will be filtered out from processing.
    Attached Files Attached Files

Similar Threads

  1. Need a help in modification of lisp. Please update the lisp code as required.
    By brahmanandam.thadikonda762224 in forum AutoLISP
    Replies: 0
    Last Post: 2018-09-20, 04:12 AM
  2. Replies: 0
    Last Post: 2016-11-21, 05:02 AM
  3. Modification to a lisp (needs to change the lisp code)
    By nanaji130285733687 in forum AutoLISP
    Replies: 3
    Last Post: 2016-11-21, 04:45 AM
  4. Replies: 6
    Last Post: 2014-07-12, 08:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •