When you are using single line text. Once you selected the command (before you place your text down) you have an option in your command line "Justify". Select it and choose your justification.
When using Multiline text. Once you have placed the text box, your ribbon will change and you will find your text justification settings in the "Paragraph" panel.
When there is a text that is already correct I will use MA (Match Properties) to change the other ones
Can I give this 1000 kudos?
Text justification needs to be by default left. I can't even fathom why right is an option. I've two different leader settings where I can toggle left justification on (Qleader beign the best one, it even has the correct leader start points correct), but there is no way that I can see to change the amleader setting to default to left.
Has anyone found how to default to left justification single line text. This thread seems to still be open.
You can also edit your cui and change the command for mtext from this:
^C^C_mtext
to this:
^C^C_mtext;\j;tl
and it will automatically justify top left
Thank you, stevev0983! Your little macro for changing the default MTEXT justification was just what I was looking for. I wanted my MTEXT to default to center but couldn't find anything in sys variables or regular settings. I just put your macro ^C^C_mtext;\j;tl into that command in the CUI but changed the last "L" to a "c" and voila! Yudda man.
as far a I can tell, when you create a text entity using the 'text' or 'dtext' command, the justification you use will become default for that drawing until future changes to the justification. if this setting is changing, perhaps there is more than one user modifying the drawings.
Hi Kian D Smith and @stevev0983
@kian.d.smith7469 wrote:Thank you, @stevev0983! Your little macro for changing the default MTEXT justification was just what I was looking for. I wanted my MTEXT to default to center but couldn't find anything in sys variables or regular settings. I just put your macro ^C^C_mtext;\j;tl into that command in the CUI but changed the last "L" to a "c" and voila! Yudda man.
Your solution seems to be exactly what I need; however the macro doesn't work for me.
I inserted:
^C^C_mtext;\j;MC;
^C^C_mtext;\j;mc;
^C^C_mtext;\j;MC [with space after]
and so on. still, no go.
Please help.
@gideon.botes wrote:
.... the macro doesn't work for me.
I inserted:
^C^C_mtext;\j;MC;
^C^C_mtext;\j;mc;
^C^C_mtext;\j;MC [with space after]
and so on. still, no go.
.....
Welcome to these Forums!
It would not be case-sensitive, and macros automatically feed in an Enter at the end if the last character isn't some kind of control character, so the space wouldn't be needed. What do you see at the Command line when you pick a menu item containing one of those macros?
You're the only one that understood what i meant. I agree for that to be editable in the future!
.....
Welcome to these Forums!
It would not be case-sensitive, and macros automatically feed in an Enter at the end if the last character isn't some kind of control character, so the space wouldn't be needed. What do you see at the Command line when you pick a menu item containing one of those macros?
Thanks so much for getting back to me 🙂
See, I figured this to be my problem - I'm not using a menu-item, but instead I use text command.
I saw elsewhere that the CUI "commands' are not "command-line commands" but instead the tools from the ribbon and icons etc. Is this true?
I type in the command, and then it just carries on as normal, without implementing the justification I specified in the macro. It just says at command line "Specify first corner" and continues doing it LT (left top) instead of MC (middle center).
But when I use the ribbon button, then it works as I specified in the CUI macro.
I suppose this is fine, although command line commands help me do my job faster.
Which is the purpose of wanting to automate the default justification in the first place - to do things faster.
Thanks again!
gideon.botes wrote:... What do you see at the Command line when you pick a menu item containing one of those macros?....
See, I figured this to be my problem - I'm not using a menu-item, but instead I use text command.
I saw elsewhere that the CUI "commands' are not "command-line commands" but instead the tools from the ribbon and icons etc. Is this true?
I type in the command, and then it just carries on as normal, without implementing the justification I specified in the macro. ....
But when I use the ribbon button, then it works as I specified in the CUI macro.....
Yes, it's true -- a macro definition cannot be called up by just entering a regular command name. You have to "put" the macro somewhere [your ribbon button] and call if from there.
If you almost always use middle-center justification for Mtext, it would be possible to have a routine automatically loaded that would Undefine the Mtext command and replace it with a new definition that always supplies the MC justification, as your macro does. That would mean that the regular command name would have the same result as your macro, because it would call up a differently-defined Mtext command. It would still be possible to use the standard Mtext command if and when you need to use another justification, by typing in the name with a preceding period/decimal: .MTEXT.
But consider something else that would be possible: It sounds like you want MTEXT to remember the justification you last used, and default to that if you don't request something else, rather than always assuming Top-Left. [That's the opposite of the intent of the OP here, who wants the TEXT command to not remember the last justification you used, but to always default to Left justification, as it did in earlier versions. I do find it rather curious that the program has been altered so that it remembers the last-used justification for Text, but not also for Mtext.] But it would be possible to make a new definition of the Mtext command that would not always use MC, but would remember whatever justification you last used, and use that unless/until you ask for something different. Would that suit your needs as well as or better than an always-MC version? I think it would be better for me, since I don't have a justification that I use overwhelmingly enough to want to always default to it.
HI!
just started with AutoCAD LT and am still trying to get m head around everything.
i have found a macro, and assigned it to a button on the ribbon, pretty much with each click it inserts a number, then increments it for the next one on each click. it looks like this:
*^c^c_text;\;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));
I want to set it so it justifies middle center (at the moment it justify s left), so if i click on the dead center of a circle (which is where i want the numbers) the number will line itself up right in the middle. i tried this:
*^c^c_text;\j;mc;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));
adding in the ;\j;mc; part, as mention earlier in this thread but it didn't work. it seems to then ask me all the usual questions about the text i want to insert but then doesn't execute the last bit and actually insert the number. any other suggestions?
so i solved my own problem.
i found that what i wanted was to understand what the expressions in the macro meant, so i did and first go i was able to do exactly what i wanted.
The document i found was located here:
and the macro i ended up using was this:
*^c^c_text;mc;\;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));
As described in the document, if you take note of what you type in the command box, you can replicate that in the macro. kinda embarrased i didn't work this out sooner. anyway, its here now if anyone wants to use it in the future.
Hi everyone,
I know this is a very old topic and maybe the solution is already given but I found in the 2019 version, and probably also for the older version, a solution.
When you open a new template and do nothing else but type "text". You can change in the command the justification of the text. Change this to whatever you want is default.
Then escape the text command and just save your drawing as .dwt. You can keep the same name. Now when you open that template the default text justification is set to whatever you choose.
I hope this helps!