WBLOCK

Discussion in 'AutoCAD' started by Martin Shoemaker, Jan 20, 2004.

  1. Back many versions ago it was possible to wblock a drawing to it's
    existing name to clean up the database. Recent versions don't allow
    this. Has anyone worked out a way to get the old capability in 2004? I
    know it can be dangerous, but I'm willing to trade the danger of
    occasionally losing some work against the time to wblock to a dummy
    name, copy the dummy file to the original name, and erase the dummy file
    name.

    Thanks,

    Martin
     
    Martin Shoemaker, Jan 20, 2004
    #1
  2. Martin Shoemaker

    Doug Broad Guest

    -wblock
     
    Doug Broad, Jan 20, 2004
    #2
  3. Martin Shoemaker

    dean_bourke Guest

    2 menu items I use:

    [Wblock Current Drawing (ENTIRE) on itself]^c^c^p(command".ucs" "W")(princ);(command "wblock" (strcat(getvar"dwgprefix")(getvar"dwgname")) "Y" "*")(princ);
    [Wblock Current Drawing (Mspace) on itself]^c^c^p(setq or_tm (getvar"tilemode"))(princ);(setvar"tilemode" 1)(princ);(command".ucs" "W")(princ);(command "wblock" (strcat(getvar"dwgprefix")(getvar"dwgname")) "Y" "" "non" "0,0" (ssget "X" (list(cons 67 0))) "")(princ);(command"zoom" "E");(command"delay" 1000);(setvar"tilemode"or_tm)(princ);
     
    dean_bourke, Jan 20, 2004
    #3
  4. Martin Shoemaker

    Rakesh Rao Guest

    Hi Martin,

    Use the command line version of the WBLOCK command (start using
    -WBLOCK). This allows the current drawing to be saved and replaced with
    the * option.

    Regards
    Rakesh


    --

    AutoCAD customization for Engineering/Mapping/GIS
    Get GeoTools @ http://www.4d-technologies.com/geotools
    Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
    FREE downloads : http://www.4d-technologies.com/techcenter
    </PRE>
     
    Rakesh Rao, Jan 20, 2004
    #4
  5. Thanks for the responses.

    Martin
     
    Martin Shoemaker, Jan 20, 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.