Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mtext defaults 3

Status
Not open for further replies.

FacilitiesCAD

Chemical
Jun 25, 2003
46
I have a guy that I work with here who wants the default setting for his text to be center middle instead of top left. Is there a place to change this. We both use AutoCad LT 2000.

Thanks
 
Replies continue below

Recommended for you

I can't think of an automatic setting, but you could create a button macro that will set it for you.
Try this:

^C^Cmtext;\justify;tc;

Everytime you ust this button, it would set the justification to top center for this piece of mtext.

 
Well this didn't exactly work. The process of mtext requires that I select my first corner then put in justify mc and then select my second corner. I've attached what my command line said when I tried your macro. It took me a little while to figure out how to enter a macro and I'm sure there are better ways. (I had to copy my aclt.mnu file to my personal drive so I could have write permision to it. Then I had to edit under options where it looks for that file. Next I double clicked my mtext icon when I had the toolbars window open and I was able to edit the mtext button macro. I don't know how to make a new button from scratch. Anyhow is there something that can be put in the macro to let me input the mouse click for where I want the mtext to be started?

Thanks,



Attached command line information

Command: _mtext Current text style: "Standard" Text height: 0.2000
Specify first corner:

Point or option keyword required.
Specify first corner:
Specify opposite corner or [Height/Justify/Line spacing/Rotation/Style/Width]:

Command:
 
view -> toolbars
select [new]
give name, [ok]
choose "commands" tab, highlight "user defined"
hold control and drag copy of "user defined button" to new toolbar
right click button in new toolbar, choose properties
then copy and paste below code into new button

^C^Cmtext;\justify;mc;

give button name and image.
the slash allows for user input



Intel P4 1.7 GHZ
768 RDRAM
Win 2000 Pro
Autocad 14, 2002 with EP 2.3.1
 
Thanks,
It works for me. My orignal attempt had a space in it which I could see know that I know what the slash means. I especially found how to make a new icon helpfull.

Thanks,
 
Sorry, I should have explained a little more, but I think ozzy84 covered it.
One other thing, which you probably picked up on, is that the semicolon ; acts as an enter, as does a space.

Creating button's like this can be very helpful for repeated tasks. The best way to figure out what to put in is to go through each step at the command line. If you can figure out how to manually enter each bit, you can put it all together into a single button

 
It is great information to know. Is it simple to make new commands also. (I could enter a command in a script file where I cant sellect a button in one) I figure it would be just adding a line of code in a file in the support directory.

Thanks,
 
Dear OZZY84

I find it very helpful the information you gave to FacilitiesCAD.
But now my question is. What should I add to the command line commad placed on the macro, so that every time I place text, the with of that same text is 0.
I try everything but nothing works
 
easy

^C^Cmtext;\justify;mc;width;0;

as stated by CDH the ";" acts as an enter so the above just adds, "width" [enter] "0" [enter]
how many lines are shown on your command line?
i recommend showing at least 3 lines.

Intel P4 1.7 GHZ
768 RDRAM
Win 2000 Pro
Autocad 14, 2002 with EP 2.3.1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor