AutoCAD 2004/2005/2006

AutoCAD 2004/2005/2006

Reply
Contributor
JohnFN
Posts: 17
Registered: ‎01-18-2006
Message 1 of 10 (262 Views)

Change font in Mtext

262 Views, 9 Replies
02-02-2006 02:53 AM
I am looking for lisp routine to change the .shx font in an Mtext. I would for example change the font from iso.shx to isocp.shx for all the mtext objects in the same file. Does anyone know to do that?
*R.K. McSwain
Message 2 of 10 (262 Views)

Re: Change font in Mtext

02-02-2006 04:38 AM in reply to: JohnFN
JohnFN said the following on 2/2/2006 4:53 AM:
> I am looking for lisp routine to change the .shx font in an Mtext. I would for example change the font from iso.shx to isocp.shx for all the mtext objects in the same file. Does anyone know to do that?

Is the font "iso.shx" embedded in the MTEXT string, or does the MTEXT
string just have this style applied to it?

If the latter, you can use QSELECT and PROPERTIES.


--
R.K. McSwain
http://rkmcswain.blogspot.com
Contributor
JohnFN
Posts: 17
Registered: ‎01-18-2006
Message 3 of 10 (262 Views)

Re: Change font in Mtext

02-02-2006 05:20 AM in reply to: JohnFN
The font iso.shx is embedded in the Mtext object. It doesn't help if I change the .shx file in the style command, or if I applies an other style to the Mtext object.

See attached file. I want to change the font in the style ISO, from iso.shx to isocp.shx. It works fine in Dtext but not in Mtext. I would be able to do this with a simple command when I open drawing saved in AutoCAD 2002 in ADT 2006. Iso.shx does not work in AT 2006, I get questionmarks instead for the swedish letters å, ä and ö.
*R.K. McSwain
Message 4 of 10 (262 Views)

Re: Change font in Mtext

02-02-2006 07:40 AM in reply to: JohnFN
JohnFN said the following on 2/2/2006 7:20 AM:
> The font iso.shx is embedded in the Mtext object. It doesn't help if
> I change the .shx file in the style command, or if I applies an other
> style to the Mtext object.

I realize that. That is why I did NOT suggest this method if the font
was embedded in the MTEXT entity.

Do you care about any other embedded formatting? If not, then you can
remove the formatting from each MTEXT entity, then apply a textstyle
whose font is set to "isocp.shx"

--
R.K. McSwain
http://rkmcswain.blogspot.com
Contributor
JohnFN
Posts: 17
Registered: ‎01-18-2006
Message 5 of 10 (262 Views)

Re: Change font in Mtext

02-02-2006 12:02 PM in reply to: JohnFN
OK, how do I do that?
*Jack Cole
Message 6 of 10 (262 Views)

Re: Change font in Mtext

02-02-2006 03:32 PM in reply to: JohnFN
Hello,

Somewhat OT and apologies for not being to provide any input to your
question but what are your desktop appearance settings. That "chrome" look
is very refreshing.

--
Jack Cole
(no relation to Old King or Nat King)


wrote in message news:5075354@discussion.autodesk.com...
The font iso.shx is embedded in the Mtext object. It doesn't help if I
change the .shx file in the style command, or if I applies an other style to
the Mtext object.

See attached file. I want to change the font in the style ISO, from iso.shx
to isocp.shx. It works fine in Dtext but not in Mtext. I would be able to do
this with a simple command when I open drawing saved in AutoCAD 2002 in ADT
2006. Iso.shx does not work in AT 2006, I get questionmarks instead for the
swedish letters =
3, ä and ö.
*R.K. McSwain
Message 7 of 10 (262 Views)

Re: Change font in Mtext

02-03-2006 05:55 AM in reply to: JohnFN
JohnFN said the following on 2/2/2006 2:02 PM:
> OK, how do I do that?

1. Highlight the MTEXT entity.
2. Execute the MTEDIT command.
3. After the mtext editor opens, press Ctrl+A to select all the text
4. Press Ctrl+Space to remove all formatting.

If you have or get ToolPac, it includes a routine to strip formatting
from a selection set of MTEXT.

--
R.K. McSwain
http://rkmcswain.blogspot.com
Valued Mentor
tim.turner
Posts: 1,674
Registered: ‎04-26-2005
Message 8 of 10 (262 Views)

Re: Change font in Mtext

02-03-2006 06:50 AM in reply to: JohnFN
Looks like what I use. Windows XP Style - Silver.
Contributor
JohnFN
Posts: 17
Registered: ‎01-18-2006
Message 9 of 10 (262 Views)

Re: Change font in Mtext

02-09-2006 08:05 AM in reply to: JohnFN
OK, not really what I want to do. When I remove the formatting in the Mtext object the height of the text changes as well, from 175 mm to 250 mm. Why is that?

What I want to do is.
1. Change the font in the style ISO from iso.shx to isocp.shx
2. Change all the Mtext formatted with iso.shx to isocp.shx
3. Make an lisp, script or something so I can make automate it.

Is it possible?

/ John
Contributor
JohnFN
Posts: 17
Registered: ‎01-18-2006
Message 10 of 10 (262 Views)

Re: Change font in Mtext

02-09-2006 08:11 AM in reply to: JohnFN
That is correct.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.