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
    1. Advertisements

  2. Dave

    Paul Turvill Guest

    Not without seeing the code ...
    ___

    "Dave" <> wrote in message
    news:4161c216$1_3@newsprd01...
    >
    > any suggestions?
     
    Paul Turvill, Oct 4, 2004
    #2
    1. Advertisements

  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)
    )
    )


    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
    http://www.acadxtabs.com

    "Dave" <> wrote in message
    news:4161ce5a$1_2@newsprd01...
    > Paul,
    >
    > I attached the code. Hope you can help.
    >
    > thanks. dave
    >
    > "Paul Turvill" <> wrote in message
    > news:4161cba7_1@newsprd01...
    >> Not without seeing the code ...
    >> ___
    >>
    >> "Dave" <> wrote in message
    >> news:4161c216$1_3@newsprd01...
    >> >
    >> > any suggestions?

    >>
    >>

    >
    >
    >
     
    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



    "Tony Tanzillo" <tony.tanzillo@U_KNOW_WHERE.com> wrote in message
    news:4161d28e_2@newsprd01...
    > 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)
    > )
    > )
    >
    >
    > --
    > http://www.caddzone.com
    >
    > AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
    > http://www.acadxtabs.com
    >
    > "Dave" <> wrote in message
    > news:4161ce5a$1_2@newsprd01...
    > > Paul,
    > >
    > > I attached the code. Hope you can help.
    > >
    > > thanks. dave
    > >
    > > "Paul Turvill" <> wrote in message
    > > news:4161cba7_1@newsprd01...
    > >> Not without seeing the code ...
    > >> ___
    > >>
    > >> "Dave" <> wrote in message
    > >> news:4161c216$1_3@newsprd01...
    > >> >
    > >> > any suggestions?
    > >>
    > >>

    > >
    > >
    > >

    >
    >
     
    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
    "Dave" <> wrote in message
    news:4161c216$1_3@newsprd01...
    > 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
    >
    >
     
    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?



    "Jon" <> wrote in message
    news:4161daf3_3@newsprd01...
    > 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
    > "Dave" <> wrote in message
    > news:4161c216$1_3@newsprd01...
    > > 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 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" <> wrote in message
    news:4161c216$1_3@newsprd01...
    > 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 5, 2004
    #7
    1. Advertisements

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.
Similar Threads
  1. akdrafter
    Replies:
    5
    Views:
    439
    CAB2k
    Feb 18, 2004
  2. Scott Mcfarren

    How read text on command line into lisp?

    Scott Mcfarren, Jun 28, 2004, in forum: AutoCAD
    Replies:
    5
    Views:
    527
    randy benson
    Jun 29, 2004
  3. Michael Pape & Associates
    Replies:
    15
    Views:
    916
    andywatson
    Jul 22, 2004
  4. Samiran Dam
    Replies:
    12
    Views:
    501
    Stephen Greenwood
    Sep 16, 2010
  5. Ted
    Replies:
    2
    Views:
    2,370
    Inga Morozoff [Bentley]
    Apr 20, 2004
  6. Ted
    Replies:
    2
    Views:
    282
    Tahimik
    Apr 21, 2004
  7. Ronni
    Replies:
    2
    Views:
    775
    Ronni
    Dec 3, 2007
  8. doug
    Replies:
    1
    Views:
    513
Loading...