Rotated text in scr script

Rotated text in scr script

Anonymous
Not applicable
1,152 Views
5 Replies
Message 1 of 6

Rotated text in scr script

Anonymous
Not applicable

Hi all.

This is my .scr script where the text is rotated:

 

_.layer n rack_inspector_green c 92 rack_inspector_green r rack_inspector_green

_.circle 1000,1000 350
_.circle 1000,1000 330
; -layer r 0
;
_.text g c 1000,800 400 0 M

 

I've just set "keyboad input" in Options/User preference but i can't solve the problem.

Moreover, i've used it without any problems for months.

What could be the problem?

 

Many thanks.

Gianluca.

 

0 Likes
1,153 Views
5 Replies
Replies (5)
Message 2 of 6

ВeekeeCZ
Consultant
Consultant

Would you copy/paste here the command-line listing when SCR was run?

0 Likes
Message 3 of 6

dbhunia
Advisor
Advisor

Hi,

 

I think your *.scr should be like the attached file......(Its tested in AutoCAD 2007 hopefully work in upper version)

 

The "RED" marked value in the line "_.text j mc 1000,1000 400 90 M" controls the rotation of text ....... change it as your required rotation angle....

 

I do not know why I was unable to attach "Test.scr" file in "Message-1", so I just renamed it as "Test.scr.txt"  attached it again......

 

You please Rename it from "Test.scr.txt" to "Test.scr".....


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes
Message 4 of 6

Kent1Cooper
Consultant
Consultant

This may not fix it, but....

 

Your r option in two Layer commands [one commented out] appears to be intended to [reset?] make a given Layer current, but that should be done with the set option.  R is for the rename option, which needs to be given two  text strings, one a current Layer name and a second for what you want to change its name to.  Is it renaming your rack_inspector_green Layer and changing it to _.circle [because that's coming in where it would be asking for the new name]?

 

It doesn't look like you have a completion  of the Layer command, in a Script typically a blank line, as in the commented-out one.  [EDIT:  @dbhunia put that in their attached file -- I was reacting to its not being in Message 1.]

Kent Cooper, AIA
0 Likes
Message 5 of 6

Anonymous
Not applicable

Hi all.

Thks for reply.

My original script is correct but i must select "STANDARD" as Text style in Annotation.

See attacched screen!

 

Gianluca.

0 Likes
Message 6 of 6

ВeekeeCZ
Consultant
Consultant

Go to the Text Style and check whether is Height set to 0 on some other value.

 

image.png

 

Then see the command line:

 

Current text style:  "Standard"  Text height:  2.50  Annotative:  No  Justify:  Left
Specify start point of text or [Justify/Style]:
Specify height <2.50>: 2.5 ; this prompt occurs only when text height is 0.
Specify rotation angle of text <0.000>:


Current text style:  "Standard"  Text height:  1.00  Annotative:  No  Justify:  Left
Specify start point of text or [Justify/Style]: ; <- in this case is the height set to 1, so no prompt here.
Specify rotation angle of text <0.000>: 0
0 Likes