TheSwamp

CAD Forums => CAD General => Topic started by: M-dub on February 20, 2007, 02:08:49 PM

Title: Add Dtext with Script
Post by: M-dub on February 20, 2007, 02:08:49 PM
What's wrong with me?

How do you add a line of dtext using a script?  It just stops when it comes time to enter the text, waiting for the user to enter it.  I want the script to put it in.  I know I've done this before, but it's been YEARS!

Code: [Select]
DTEXT
J
ML
7.4688,2.3643
0.15
0
D-SK-09071-12

Title: Re: Add Dtext with Script
Post by: David Hall on February 20, 2007, 02:13:58 PM
is it waiting for the second "enter" to finish?
Title: Re: Add Dtext with Script
Post by: M-dub on February 20, 2007, 02:15:06 PM
Nope, don't think so.  I've tried a bunch of different configurations of the "enters".
Title: Re: Add Dtext with Script
Post by: David Hall on February 20, 2007, 02:17:45 PM
I made a few changes,
Quote
-TEXT
J
ML
0,0
0.15
0
D-SK-09071-12

and it worked.  I think the problem might be Autocads new "ON Screen editor" that can't take input from scr file.  By changing to Text command, it worked.  I also changed to 0,0 to make sure it came in at right coordinates.
Title: Re: Add Dtext with Script
Post by: M-dub on February 20, 2007, 02:28:34 PM
THAT was it!

As soon as I saw -Text, the lightbulb went on!  :-D


Duh!  Thank-you! :laugh:
Title: Re: Add Dtext with Script
Post by: David Hall on February 20, 2007, 02:30:19 PM
No problem, glad I could help
Title: Re: Add Dtext with Script
Post by: whdjr on February 21, 2007, 10:31:00 AM
What's wrong with me? ...

Do you want a truthful answer or a nice answer ..... :lol:
Title: Re: Add Dtext with Script
Post by: M-dub on February 21, 2007, 10:35:18 AM
What's wrong with me? ...

Do you want a truthful answer or a nice answer ..... :lol:

:)

I didn't think it would take this long for SOMEONE to say that!  ;)