My new Mtext Editor

Started by bazzacad · 2007-10-13 00:28 UTC · 8 replies · SMF topic #67

I got tired of trying to remember all these strange UNICODE addresses to place our custom symbols into mtext so I created this little dialog to help me out...
Check out the video here...
{2}
Barry, very nice.  Is there any way to delete the right click paste operation?  Not really a big deal though.

Nice one!


jb
Neat Barry !
Pretty cool.... Don't suppose you'd like to share?
author=jb link=topic=67.msg285#msg285 date=1192445458 wrote:
Barry, very nice.  Is there any way to delete the right click paste operation?  Not really a big deal though.

Nice one!


jb


I really wish I could find away to not have to click inside the editor & paste. (I actually use CTRL+V but used the right so you could see the operation on-screen). The prob. is the Mtext editor takes full focus and there doesn't seam to be any way to interact with it. I was hoping there might be a .NET why of doing it, but I don't know much about .NET so this was the best workaround I could think up. If anyone knows how to do a paste programmatically into the mtext editor any help would be much appreciated.
author=Matt W link=topic=67.msg299#msg299 date=1192560646 wrote:
Pretty cool.... Don't suppose you'd like to share?


OK here's my code.
Note, these UNICODE addresses are hard coded to my font "Archs.shx" so you'd have to modify it to work with your font.
Also, it's currently not setup to handle multiple fonts.
You'll also need DosLib to run the code.

Here's an example on how to set it up for creating a new Mtext object:
(defun c:mt (/)
  (setq inspt (getpoint "\nInsertion Point: "))
  (initdia)
  (load "MTClipboadSymbols")
  (dcl_Project_Load "clip.odcl")   
  (dcl_Form_Show clip_Form1)
  (dcl_SetCmdBarFocus)
  (command ".mtext" inspt pause)
  (dcl_Form_Close clip_Form1)
)

You'd have to do the same for Dtext & Mleaders...

For Dbl. Clk. editing of objects, you'll have to edit your CUI per the screen shot below...


[attachment deleted by admin]
Just for the record, Autodesk blatantly stole my Double Click options idea and didn't even bother to acknowledge the fact that I've provided the option of customizing double click actions since v2002!



Oh well . . .  ::)

Barry, what do you use doslib for in this routine??
author=BazzaCAD link=topic=67.msg307#msg307 date=1192643730 wrote:
[quote author=Matt W link=topic=67.msg299#msg299 date=1192560646]
Pretty cool.... Don't suppose you'd like to share?


OK here's my code.


Cool.... Thanks!


author=jb link=topic=67.msg315#msg315 date=1192708788 wrote:
Barry, what do you use doslib for in this routine??


Looks like copying/pasting to/from the Clipboard.
author=Matt W link=topic=67.msg316#msg316 date=1192713302 wrote:
[quote author=jb link=topic=67.msg315#msg315 date=1192708788]
Barry, what do you use doslib for in this routine??

Looks like copying/pasting to/from the Clipboard.


Actually just to the clipboad. From just used the OS CTRL+V
I think I've seen an all lisp version of putting to the clipboard, but didn't want to deal with it, since I already had DosLib.