Looping the VLA-PUT . . . command

Discussion in 'AutoCAD' started by swu, Feb 24, 2005.

  1. swu

    swu Guest

    I am looking for a way to loop the vla-put command until the user hits enter or escape during a routine

    I looked at using the while command, but it appears when the vla-put command is successful it returns nil and the while loop ends.

    Any suggestions?

    Thanks in advance
     
    swu, Feb 24, 2005
    #1
  2. swu

    Jeff Mishler Guest

    What is it that you are looping through?
    To get (vla-put whatever) to return T use like so: (not (vla-put whatever)),
    but I don't think that that is really what you want.
     
    Jeff Mishler, Feb 24, 2005
    #2
  3. swu

    swu Guest

    Jeff,

    That worked like a charm, thanks for the late night reply now the while command works perfectly to allow the routine to repeat.

    Thanks again,

    swu
     
    swu, Feb 24, 2005
    #3
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.