CUI > Command List edits only effect the Ribbon Buttons and not the commands when typing in

CUI > Command List edits only effect the Ribbon Buttons and not the commands when typing in

crleslie
Contributor Contributor
306 Views
1 Reply
Message 1 of 2

CUI > Command List edits only effect the Ribbon Buttons and not the commands when typing in

crleslie
Contributor
Contributor

I've tried changing the default justification to top center for mtext by modifying the following command under CUI > Command List > Multiline Text and modifying the macro to the following:
^C^C_mtext;\j;tc

 

This command does in fact justify the text objects correctly, but it works only when I click on the Multiline Text button in the Ribbon.  It does not work when I type mtext, or type T which is a custom alias for mtext for my program into the command line which is how I usually create a multiline text object.

 

Any fixes for this to make my "T" in the command line to work the same as clicking the multiline text button in the ribbon?

0 Likes
307 Views
1 Reply
Reply (1)
Message 2 of 2

David_W_Koch
Mentor
Mentor

The command macros you create in the Customize User Interface dialog only apply to places where those are then referenced, such as ribbon tools or toolbar tools.

 

If you want to type T at the command line and get the MTEXT command started the same way, you would need to create an AutoLISP function that does that and then load that function in your drawing.

 

You could save the following to a file called T.lsp:

(defun C:T ()
  (command "_.MTEXT" pause "J" "TC")
)

 

To load the file, you can drag it from a File Explorer window and drop it on the drawing canvas, or, on the Manage ribbon tab, on the Applications panel, choose the Load Application tool.  In the Load/Unload Applications dialog, navigate to the folder where you saved T.lsp, select it, and choose the Load button.

 

Snag_3074694.png

 

If this is something you always want available, add T.lsp to the Startup Suite, which you can also do from the Load/Unload Applications dialog.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes