Results 1 to 7 of 7

Thread: NEED HELP WITH LISP ROUTINE - PURGE linetype lisp

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    2013-01
    Posts
    11
    Login to Give a bone
    0

    Default NEED HELP WITH LISP ROUTINE - PURGE linetype lisp

    Hi guys,

    I have this lisp routine that somehow used to work though it deletes all my layouts now.

    Code:
    (defun c:removeline ()
      (vlax-for n (vla-get-blocks
                    (vla-get-activedocument
                      (vlax-get-acad-object)
                    )
                  )
        (vl-catch-all-apply 'vla-delete (list n))
      )
      (princ)
    )
    This routine used to remove all nested linetypes that were not used. It worked a couple of time though for some reason it deletes all the layout tabs. I think that either a variable has been changed or something else. It has the same effect on all the other pc's in the office (deletes layout tabs)

    Thanks heaps.

    Rico
    Last edited by BlackBox; 2013-06-20 at 02:26 PM. Reason: Please use [CODE] Tags

Similar Threads

  1. Calling up LISP routine from within another LISP
    By jimmy_goodall in forum AutoLISP
    Replies: 4
    Last Post: 2013-08-21, 05:56 AM
  2. Replies: 9
    Last Post: 2012-01-21, 07:58 AM
  3. LISP code for Purge, Audit and Save... help
    By recjld in forum AutoLISP
    Replies: 5
    Last Post: 2009-08-18, 09:28 PM
  4. LISP to purge AEC Styles
    By burchd in forum AutoLISP
    Replies: 0
    Last Post: 2008-04-23, 04:17 PM

Tags for this Thread

Posting Permissions

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