KevinRAmbrose

centering labels

Recommended Posts

I like the new multiline label capabilities with X8, when I label beams, is there any way to center justify the text?

post-5266-0-49752300-1459889961_thumb.jpg

Share this post


Link to post
Share on other sites

Not yet. Hope they add that in X9. The best you can do for now is add spaces to the start of the shorter line to manually justify. 

Share this post


Link to post
Share on other sites

Actually, if you use a User Macro you can format the entire label to be centered.  You just need to use the method ".center(20)" for each line.  You will also need to use "\n" where you want a line feed.

 

Basically something like this:

 

result = line1.center(20) + "\n" + line2.center(20)

Share this post


Link to post
Share on other sites

thanks for the info Joe, guess it's time to learn more about macros

One note on centering - using a fixed font is more reliable because all the characters in the string (including spaces will be the same width.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Member Statistics

    28833
    Total Members
    9156
    Most Online
    Chieftan_1
    Newest Member
    Chieftan_1
    Joined