gettin blocks from drawings

Discussion in 'AutoCAD' started by Amy&Scott, Apr 20, 2004.

  1. Amy&Scott

    Amy&Scott Guest

    Hello there i am asking a Q about blocks.
    is there a way of getting a block out of a drawing or saving it without
    opening the drawing or selection of drawings.
    see i have had to reformat my comp and saved all my working files and went
    to save my blocks but there was a problem and then i had no choice amd my
    comp went know i have all the files as total drawings with blocks in but no
    blocks any one got a good solution.
    Scott
     
    Amy&Scott, Apr 20, 2004
    #1
  2. Amy&Scott

    bestafor Guest

    HiHo;
    WBLOCK will save blocks as seperate drawings.
    If the blocks are in a reference drawing wblock the block and insert
    into new drawing. In r2000i and up there is DesignCenter.
     
    bestafor, Apr 21, 2004
    #2
  3. Amy&Scott

    CW Guest

    Without opening the drawing? That was the question.
     
    CW, Apr 21, 2004
    #3
  4. Amy&Scott

    Randy Jones Guest

    This will work as long as there are no xref's in the drawing.

    (defun C:BLKOUT ()
    (setq SS1 nil
    BLOC (cdr (assoc 2 (tblnext "BLOCK" T)))
    )
    (while BLOC
    (if (= (substr BLOC 1 1) "*") ; if anonymous block (name starts with
    *) skip
    nil
    (command "WBLOCK" (strcat (getvar "DwgPrefix") BLOC) "=")
    )
    (setq BLOC (cdr (assoc 2 (tblnext "BLOCK"))))
    );while
    )
     
    Randy Jones, Apr 21, 2004
    #4
  5. Amy&Scott

    Max Guest

    ....and using command ADC (Autocad Design Center) for output blocks?

    Max
     
    Max, Apr 21, 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.