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

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

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

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott Mcfarren

    How read text on command line into lisp?

    Scott Mcfarren, Jun 28, 2004, in forum: AutoCAD
    Replies:
    5
    Views:
    306
    randy benson
    Jun 29, 2004
  2. Michael Pape & Associates
    Replies:
    15
    Views:
    633
    andywatson
    Jul 22, 2004
  3. Samiran Dam
    Replies:
    12
    Views:
    270
    Stephen Greenwood
    Sep 16, 2010
  4. Ted
    Replies:
    2
    Views:
    1,165
    Inga Morozoff [Bentley]
    Apr 20, 2004
  5. doug
    Replies:
    1
    Views:
    325
Loading...

Share This Page