What's wrong with this ??

Discussion in 'AutoCAD' started by jclaidler, Aug 25, 2003.

  1. jclaidler

    jclaidler Guest

    Its checking for a file in the directory with the same name, before it creats a wblock.

    (IF (not (= (TYPE (VL-FILE-SYSTIME (strcat blockdir "\\" newb))) 'LIST))
    (command ".wblock" newblock "" point "l" "" "oops")
    (princ "\nBlock name already exists in 'Blocks' directory.")
    )
     
    jclaidler, Aug 25, 2003
    #1
  2. jclaidler

    DonB Guest

    I think you may need to close out the WBLOCK command before calling the OOPS command.



     



    Don



     



    "jclaidler" <-usa.com> wrote in message news:...

    Its checking for a file in the directory with the same name, before it creats a wblock.

    (IF (not (= (TYPE (VL-FILE-SYSTIME (strcat blockdir "\\" newb))) 'LIST))
    (command ".wblock" newblock "" point "l" "" "oops")
    (princ "\nBlock name already exists in 'Blocks' directory.")
    )
     
    DonB, Aug 26, 2003
    #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.