View Label Text Justification

View Label Text Justification

Totec_MW
Advocate Advocate
1,275 Views
9 Replies
Message 1 of 10

View Label Text Justification

Totec_MW
Advocate
Advocate

In most cases a single line of text is all that is needed for a view label, but sometimes I need two lines. Is there a way to change the justification of the text to middle or bottom center instead of left? I know it's simple enough to explode the label and position the text manually or use the normal AutoCAD text justification options, but I thought there might be a neater way to do it in AS instead.

 

Currently getting this...

 

Totec_MW_2-1626949590562.png

 

But I would like to have this...

 

Totec_MW_4-1626949667731.png

 

Thanks in advance for any advice.

0 Likes
Accepted solutions (1)
1,276 Views
9 Replies
Replies (9)
Message 2 of 10

Sebastian_Eiche
Mentor
Mentor
Accepted solution

not possible as I know


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

Message 3 of 10

Totec_MW
Advocate
Advocate

Okay, thank you anyway for the reply Sebastian.

0 Likes
Message 4 of 10

bigcarl5000kg
Advisor
Advisor

Hi @Totec_MW ,

 

you ca use manual positioning of the text on 2., 3., .... line in Drawing style editor - easy with space bar. If it is a text with a fixed string length and a permanent position, then no problem -but unsuitable for variable text chain lengths.

 

bigcarl5000kg_0-1626967873182.png

 

+++ impossible immediately and miracles within 3 days +++
+++ the only constant is the change +++ stay tuned for more +++
+++ since 03/2023 is Advance Steel in maintenance mode, no further development +++
0 Likes
Message 5 of 10

greg.youngCXLLN
Advocate
Advocate

I think this forum needs a Thumbs Down .... Really? you can't justify text... Do AutoCad Programmers still use Dos?

Message 6 of 10

ssabourinJ59GV
Explorer
Explorer

Not sure about the Dos, but there are plenty of don'ts

0 Likes
Message 7 of 10

Julio_Soto
Advisor
Advisor

I wonder if this can be simulated in a script. Like you might be able to get the string length of the title, and the subtitle. Having that you can figure out how many spaces you need to "center thr text". I don't know enough about vb script to know if it's possible though. 

0 Likes
Message 8 of 10

Sebastian_Eiche
Mentor
Mentor

The problem with a script: get the length of the whole string of the first line and then length of the second. Now add "spaces" in front to justify the it to the middle...but: the two lines have different text height, so I think it will not be possible. 

From my point of view, there should be normal text justify possibilities as in normal software exist


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

Message 9 of 10

Julio_Soto
Advisor
Advisor

I definitely don't disagree with you that it should be a standard feature. 

Message 10 of 10

lewnworx
Explorer
Explorer

After a six year hiatus from Autocad (thank god) and doing all my stuff in Rhino I'm at a new job where they use auto cad.  

Was pretty much horrified to discover that centered text is still not an option without manually having to do a whole mess of steps.

Unreal.

Friggin dark ages.

No idea why text alignment is present in every other app in the universe but this.

Fusion has it, inventor has it, hell even tinkerCad and Free Cad have it but AC?  Oh hell no, cause that would make sense.

0 Likes