Author Topic: Mtexted custom .net Editor  (Read 3552 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6151
Mtexted custom .net Editor
« on: August 13, 2010, 09:47:29 AM »
I will paste the question from Autodesk fourms

This question is pretty vague just trying to get an idea if this a route to go down or stop before I waste time.

Has anyone created an custom mtext editor. I have messed around with a basic one(Add button,Cancel button, and multi-line textbox) which gives no reason to use it over the built-in editor,

 This is just an example not a question of how to do it
But would would be nice to build one for sheet notes or keyed notes that a engineer or (non-Draftsman) could use to give a closer feel to Notepad or Word. That would automalically number notes or insert keynote blocks and edit number attritributes at the begining of each paragraph.

 Would it be eaiser to do something like this with a table
I have some ideas how to handle this but was wondering if anyone else has tried and what problems or just not enough avaliability in API to accomplish using  an custom mtext editor.


Glenn R

  • Guest
Re: Mtexted custom .net Editor
« Reply #1 on: August 13, 2010, 10:03:04 AM »
You can set the MTextEd sysvar to use Word btw. Personally, I wouldn't attempt it as I can't see the need, plus the builtin one is quite good.

A table might be a better option as you can embed drawing images in there I believe...i think kean showed an example at one stage...

Jeff H

  • Needs a day job
  • Posts: 6151
Re: Mtexted custom .net Editor
« Reply #2 on: August 13, 2010, 10:16:24 AM »
Thanks Glenn

LE3

  • Guest
Re: Mtexted custom .net Editor
« Reply #3 on: August 13, 2010, 10:25:24 AM »
if i recall, i tried to write one, in my early days learning c#, that was posted here, and Glenn help me with that code, must be still around here somewhere.

kaefer

  • Guest
Re: Mtexted custom .net Editor
« Reply #4 on: August 13, 2010, 11:01:46 AM »
A table might be a better option as you can embed drawing images in there I believe...i think kean showed an example at one stage...

You mean http://through-the-interface.typepad.com/through_the_interface/2007/06/embedding_field.html?

That was a demonstration of Autodesk.AutoCAD.DatabaseServices.Table.SetBlockTableRecordId.

Cheers, Thorsten

Jeff H

  • Needs a day job
  • Posts: 6151
Re: Mtexted custom .net Editor
« Reply #5 on: August 13, 2010, 11:20:48 AM »
Sorry if i was not clear you can build a .Net windows form application or wpf whatever and point to the .exe as your mtext editor or word or notepad
 You can also look up mtexted in command reference

LE3

  • Guest
Re: Mtexted custom .net Editor
« Reply #6 on: August 13, 2010, 11:23:45 AM »
found it, here is the link to that super mickey mouse solution:
http://www.theswamp.org/index.php?topic=13738.0
just don't laugh.

Jeff H

  • Needs a day job
  • Posts: 6151
Re: Mtexted custom .net Editor
« Reply #7 on: August 13, 2010, 11:24:05 AM »
Sorry system variables not command references

Jeff H

  • Needs a day job
  • Posts: 6151
Re: Mtexted custom .net Editor
« Reply #8 on: August 13, 2010, 12:50:23 PM »
This is a very sorry application but this is just starting to mess around to see was is possible the first pic show editor then second shows output

Jeff H

  • Needs a day job
  • Posts: 6151
Re: Mtexted custom .net Editor
« Reply #9 on: August 13, 2010, 12:53:08 PM »
LE was that a class Library or a exe example

LE3

  • Guest
Re: Mtexted custom .net Editor
« Reply #10 on: August 13, 2010, 12:57:36 PM »
LE was that a class Library or a exe example
was a class, i think/guess(have not looked there in detail) it was removed the last one (by me).