Command Line string

Command Line string

orders3
Contributor Contributor
777 Views
10 Replies
Message 1 of 11

Command Line string

orders3
Contributor
Contributor

I am trying to paste a string in the command line.  The following use to work.

Now it sets the cursor position, text size, rotation angle.

Then waits for me to manually enter text.  I want it to past "My Text Here".

 

-Text 3.5068380277659,43.3146116396603 1.5 82.4077777777778 My Text Here

 

What has changed???

 

Thanks

0 Likes
Accepted solutions (3)
778 Views
10 Replies
Replies (10)
Message 2 of 11

Tomislav.Golubovic
Advisor
Advisor

Just tested it manually and it worked, only thing I can think of is you need to put another carriage return at the end? Is this in a script or you just put it in manually?

0 Likes
Message 3 of 11

orders3
Contributor
Contributor

I paste it in the command line.

0 Likes
Message 4 of 11

Tomislav.Golubovic
Advisor
Advisor

So it doesn't put the text in? Or it does and it just waits for you to press enter?

0 Likes
Message 5 of 11

orders3
Contributor
Contributor

Script Entered          _Text 3.5,6.2 15 82.40 My Text Here

 

I paste the above script in the command line. Hit Enter

(This appears)

 Command: _Text
Specify start point of text or [Justify/Style]: 3.5,6.2
Height of text <15.0000>: 15
Rotation angle of text <82>: 82.40

 

(It's waiting and I enter some text 1234,etc) and  Enter key twice. 1234 appears on screen

 

(This appears)
Command:
_TEXT
Specify start point of text or [Justify/Style]: My
A point is needed. Please try again:
Specify start point of text or [Justify/Style]: Text
A point is needed. Please try again:
Specify start point of text or [Justify/Style]: Here
A point is needed. Please try again:

 

(Thanks, but I'm on east coast time, so bed time) - More Tomorrow)

 

0 Likes
Message 6 of 11

paullimapa
Mentor
Mentor
Accepted solution

You originally stated that you preceded the TEXT command with a hyphen: -TEXT

Now your new example shows that you are preceding the TEXT command with an underscore: _TEXT

Try what you had originally posted by copy and pasting using a hyphen to precede the TEXT command and not an underscore:

-Text 3.5,6.2 15 82.40 My Text Here

I had to do a ZOOM Extents afterwards and then I saw My Text Here:

paullimapa_0-1739774369693.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 7 of 11

cadffm
Consultant
Consultant

Hi,

 

>>"What has changed???"
Nothing


>>"Then waits for me to manually enter text."
If you forget to copy the linebreak ro enter your textvalue, sure.


>>" I want it to past "My Text Here"."
It's already done (if your textstyle has height >0), or already paste in the commandline (but not send)

 

>>"(This appears)"

That's another command. Don't switch to another one during one and the same topic, without pointing to

-TEXT is the command you wrote about and which you should use.

 

 

 
 

 

 

Sebastian

0 Likes
Message 8 of 11

pendean
Community Legend
Community Legend
Accepted solution

@orders3 

pendean_0-1739800854260.png

 

Dash, not underscore, seems to work 100% of the time (plus an extra "return" after your words), so...

pendean_1-1739801204261.png

 

 

0 Likes
Message 9 of 11

orders3
Contributor
Contributor

Thanks - You are correct. Tried on different machine and it does work with a hyphen. 

Perhaps need to reinstall ACAD.

0 Likes
Message 10 of 11

orders3
Contributor
Contributor
Accepted solution

Thanks - You are correct. Tried on different machine and it does work with a hyphen. 

Perhaps need to reinstall AutoCAD.

0 Likes
Message 11 of 11

paullimapa
Mentor
Mentor

So are you saying even with the hyphen the text command doesn’t work on your machine only?

Instead of uninstalling try resetting your AutoCAD

How to reset AutoCAD to defaults


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes