Author Topic: Add Dtext with Script  (Read 1754 times)

0 Members and 1 Guest are viewing this topic.

M-dub

  • Guest
Add Dtext with Script
« 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


David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Add Dtext with Script
« Reply #1 on: February 20, 2007, 02:13:58 PM »
is it waiting for the second "enter" to finish?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

M-dub

  • Guest
Re: Add Dtext with Script
« Reply #2 on: February 20, 2007, 02:15:06 PM »
Nope, don't think so.  I've tried a bunch of different configurations of the "enters".

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Add Dtext with Script
« Reply #3 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.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

M-dub

  • Guest
Re: Add Dtext with Script
« Reply #4 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:

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Add Dtext with Script
« Reply #5 on: February 20, 2007, 02:30:19 PM »
No problem, glad I could help
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

whdjr

  • Guest
Re: Add Dtext with Script
« Reply #6 on: February 21, 2007, 10:31:00 AM »
What's wrong with me? ...

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

M-dub

  • Guest
Re: Add Dtext with Script
« Reply #7 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!  ;)