CAD Forums


Reply
Thread Tools Display Modes

LINE TEXT LISP

 
Dave
Guest
Posts: n/a
 
      10-04-2004
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


 
Reply With Quote
 
 
 
 
Paul Turvill
Guest
Posts: n/a
 
      10-04-2004
Not without seeing the code ...
___

"Dave" <(E-Mail Removed)> wrote in message
news:4161c216$1_3@newsprd01...
>
> any suggestions?



 
Reply With Quote
 
 
 
 
Tony Tanzillo
Guest
Posts: n/a
 
      10-04-2004
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" <(E-Mail Removed)> wrote in message
news:4161ce5a$1_2@newsprd01...
> Paul,
>
> I attached the code. Hope you can help.
>
> thanks. dave
>
> "Paul Turvill" <(E-Mail Removed)> wrote in message
> news:4161cba7_1@newsprd01...
>> Not without seeing the code ...
>> ___
>>
>> "Dave" <(E-Mail Removed)> wrote in message
>> news:4161c216$1_3@newsprd01...
>> >
>> > any suggestions?

>>
>>

>
>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      10-04-2004
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" <(E-Mail Removed)> wrote in message
> news:4161ce5a$1_2@newsprd01...
> > Paul,
> >
> > I attached the code. Hope you can help.
> >
> > thanks. dave
> >
> > "Paul Turvill" <(E-Mail Removed)> wrote in message
> > news:4161cba7_1@newsprd01...
> >> Not without seeing the code ...
> >> ___
> >>
> >> "Dave" <(E-Mail Removed)> wrote in message
> >> news:4161c216$1_3@newsprd01...
> >> >
> >> > any suggestions?
> >>
> >>

> >
> >
> >

>
>



 
Reply With Quote
 
Jon
Guest
Posts: n/a
 
      10-04-2004
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" <(E-Mail Removed)> 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
>
>


 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      10-04-2004
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" <(E-Mail Removed)> 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" <(E-Mail Removed)> 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
> >
> >

>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      10-04-2004
THANKS EVERYONE

I GOT IT!!!!! :-)

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

thanks again.

Dave


"Dave" <(E-Mail Removed)> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make text box to be more than one line ShoelSheelot@gmail.com AutoCAD VBA 0 02-22-2008 12:32 AM
% text to a line that is inclined. hmsilva AutoCAD Customization 9 02-15-2005 04:58 PM
need lisp routine that replaces existing text with new value generated by lisp Michael Pape & Associates AutoCAD Customization 15 07-22-2004 10:54 PM
Text: converting Single-line text to Multi-line doug AutoCAD Drafting 1 07-21-2004 07:30 PM
How read text on command line into lisp? Scott Mcfarren AutoCAD Customization 5 06-29-2004 04:29 AM


All times are GMT. The time now is 03:53 AM.