"WBLOCK"

Discussion in 'AutoCAD' started by Rolf Rosenquist, Apr 19, 2004.

  1. Friends!

    I'm in Paperspace on a layout and want to save all the entities in
    paperspace.
    The code is as follows:

    (setq temp_file
    (strcat (strcat (getvar "DWGPREFIX") (getvar "ctab")) "-2D")
    )
    (if (findfile temp_file)
    (vl-file-delete temp_file)
    )
    (alert (strcat "your layut will be saved as \n\n" temp_file))
    (command "_layer" "_off" "VPORTS" "")
    (command "_WBLOCK"
    temp_file
    ""
    '(0 0)
    (ssget "_X" (list (cons 410 (getvar "ctab"))))
    ""
    )
    (command "_oops")

    Some times ago it was no problem in 2000 or 2002 but now I get the message
    "Error writing/closing file". In 2004 there are no problems.

    Explanations please!

    Rolf
     
    Rolf Rosenquist, Apr 19, 2004
    #1
  2. Rolf Rosenquist

    -PG. Guest

    Hi Rolf,

    Filename in fidndile (findfile <filename>) should be a fully qualified name.

    Hth,
    -PG.
     
    -PG., Apr 19, 2004
    #2
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.