Filename Limit?

Discussion in 'AutoCAD' started by Ibro Vehabovic, Feb 2, 2004.

  1. (open filename "w")
    doesn't work when filename (including path) is too long.
    Has anyone experienced the same problem?
    What is filename limit?

    I use AutoCAD 2000.

    Thanks,

    Ibro V.
     
    Ibro Vehabovic, Feb 2, 2004
    #1
  2. Most likely, limit is equal to 256 symbols. As well as for any other string variables.
    _____________________
    Igor Kostiukovitch
    e-mail:
     
    Igor Kostiukovitch, Feb 2, 2004
    #2
  3. It is a bug. The filename limit is 126 characters. The same applies
    to the lisp funtion (load).
    As a workaround you can use the (normally shorter) DOS-filename.

    Stephan
     
    Stephan Koster, Feb 2, 2004
    #3
  4. Ibro Vehabovic

    ECCAD Guest

    I think Stephan is correct, 126 char's max.
    Be sure also to have " (quotes) around the filename to include any (spaces).
    e.g. (open "c:\\Program Files\\myfile.txt" "w")

    Bob
     
    ECCAD, Feb 2, 2004
    #4
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.