LINE TEXT LISP

Discussion in 'AutoCAD' started by Dave, Oct 4, 2004.

  1. Dave

    Dave Guest

    I recently upgraded my computer and reinstalled acad. I have a lisp program
    that creates a line type with whatever letters I type in. Since my computer
    upgrade i cannot use my ltxt.lsp. I get this message instead.

    A,1,-0.2,["DM",STANDARD,S=0.1,R=0.0,X=-0.1,Y=-.05],-0.2
    ; error: bad argument type: streamp nil

    any suggestions?

    Thanks - dave
     
    Dave, Oct 4, 2004
    #1
  2. Dave

    Paul Turvill Guest

    Not without seeing the code ...
    ___
     
    Paul Turvill, Oct 4, 2004
    #2
  3. After this line:

    (setq V:LT_VAR1 (open V:LT_FILE "w"))

    Add this:

    (if (not V:LT_VAR1)
    (progn
    (alert "Failed to open file for writing")
    (exit)
    )
    )
     
    Tony Tanzillo, Oct 4, 2004
    #3
  4. Dave

    Dave Guest

    Tony,

    I copied what you suggested to the lisp, but it still did not work - i got
    this message instead

    Enter line text: <XX>dm
    ; error: quit / exit abort
     
    Dave, Oct 4, 2004
    #4
  5. Dave

    Jon Guest

    Worked for me. No Modifications.

    I got your error when I made the file "c:\\temp\\lt_temp.lin" read only (not
    the directory, but specifically the file).
    I would say your upgrade has caused the existing files in TEMP to be made
    read-only.

    regards,

    Jon
     
    Jon, Oct 5, 2004
    #5
  6. Dave

    Dave Guest

    Jon,

    when i did a search on my computer for "lt_temp.lin" i couldn't find it.
    could that be my problem. And if so how do i get lt_temp.lin?



     
    Dave, Oct 5, 2004
    #6
  7. Dave

    Dave Guest

    THANKS EVERYONE

    I GOT IT!!!!! :)

    I created a temp folder in my c:\ and that fixed it.

    thanks again.

    Dave
     
    Dave, Oct 5, 2004
    #7
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.