bloks

Discussion in 'AutoCAD' started by mickey, Feb 4, 2004.

  1. mickey

    mickey Guest

    Hi,

    It's been a view years when I last did some ACAD drawing.
    I need to export all the blocks outoff a dwg.

    And I forgot how this is done....

    please help
     
    mickey, Feb 4, 2004
    #1
  2. What version?
     
    Michael Bulatovich, Feb 4, 2004
    #2
  3. mickey

    mickey Guest

    2004
     
    mickey, Feb 4, 2004
    #3
  4. mickey

    Max Guest

    This is my lisp program for export blocks...

    (defun C:ESBLO ()
    (setvar "CMDECHO" 1)
    (setq gru(ssget)
    index 0
    indexx 0
    )
    (repeat (sslength gru)
    (if (= (cdr(assoc 0 (entget (ssname gru index)))) "INSERT")
    (progn
    (setq name(cdr(assoc 2 (entget (ssname gru index)))))
    (command "WBLOCK" name "=")
    (setq indexx(1+ indexx))
    )
    )
    (setq index(1+ index))
    )
    (princ "\nFound ")(princ indexx)(princ " blocks")(princ)
    )

    Max
     
    Max, Feb 4, 2004
    #4
  5. If they are going into another drawing, doesn't your "design center" or
    whatever they're calling that thing do this easily enough?
    The command is ADCENTER I think.....
     
    Michael Bulatovich, Feb 4, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...