Page 1 of 1

Mtext-Latest Version

Posted: Tue Jan 15, 2002 4:32 pm
by Scott
I am having the same mtext problem with the latest PE release that I have before. Problem is outlined below (copied from previous post):

<B>Mtext appears to have a problem, I have tried this on old drawings, and also have created a fresh drawing with only mtext present. I have used the default mtext editor, notepad, and also wordpad with the same results which are as follows:

Create a new mtext object with an editor of your choice. Type in text, text should be approximately 20+ lines of about 30 characters per line. Save the mtext and now try to list properties and edit it.

What I get is the word varies in the text spot and nothing else, if I try to edit the text the only thing that shows up in the editor is "varies", however, the drawing has all the text in it.

This does not seem to be font specific. I am forced to use single line text.</B>

Can anybody else reproduce this???
Any ideas???

Running on Win98se

Thank you,

Scott

Posted: Tue Jan 15, 2002 6:08 pm
by John Finlay
Scott,

You are right there is a problem with MText.

The problem:
When the text exceeds the limit for a string variable held in the DXF code (approx 256 characters)it reports "Varies" in the properties dialog box and MText editor.

This is a new problem that was fixed and has just raised its head again.

I will write a MText editor in VBA if you like.


------------------
Regards
John Finlay
Don't want to post a question - email me direct on john@acecad.com.au

Posted: Tue Jan 15, 2002 10:50 pm
by Scott
John,

Thank you for the reply. It would be a great help if you could write an mtext editor in vba.

I will be awaiting your code.

Thank you again,

Scott

Posted: Thu Jan 17, 2002 5:20 pm
by John Finlay
Scott,

Pop over to the VBA Forum to see the start of a VBA Multi-Text Editor it is under the heading
Tutorial - User Interface - Dialog Box/Forms

While it is very basic and took a few minutes to write, I can add a lot more functions to the form and you can have a say in what you would like.



------------------
Regards
John Finlay
Don't want to post a question - email me direct on john@acecad.com.au