Author Topic: Acad2010 Double Click Actions for Mleader  (Read 1810 times)

0 Members and 1 Guest are viewing this topic.

BazzaCAD

  • Guest
Acad2010 Double Click Actions for Mleader
« on: December 14, 2009, 07:38:15 PM »
I've setup the "MultiLeader" in the Acad2010 CUI - Double Click Actions, to call my custom command.
If I double click on the leader segment, my commend starts up just fine, but if I double click on the text part of the Mleader my commend doesn't start up. I just get the contextual Ribbon "Text Editor". Doesn't anyone have any ideas?
In Acad 2008 I can double click on the leader or the text & it will start my custom command...

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Acad2010 Double Click Actions for Mleader
« Reply #1 on: December 15, 2009, 11:58:53 AM »
I am curious as to what you are trying to accomplish by having your own text editor, that you can't accomplish using the built-in editor (you can also modify to some extent the built-in editor by the way)? Hopefully by knowing what you are trying to accomplish I can help you find a way to get to what you want to do.

BazzaCAD

  • Guest
Re: Acad2010 Double Click Actions for Mleader
« Reply #2 on: December 15, 2009, 12:35:10 PM »
We've created our own Symbols interface. So you just click on a button, it gets placed on the clipboard, then you just paste it into the Mtext editor.
I'm not overriding or replacing the built in editor, just adding a command in front of it to launch our interface. The code still runs DDEDIT on the MText/MLeader & all works great.
Just the Double Click Action isn't firing when you Double Click on the text of the MLeader. It's acting like they hard-coded it to always use the contextual Ribbon "Text Editor".
I've also tried editing the contextual Ribbon "Text Editor" to place the symbols to the clipboard when a button was clicked, but that just closed the Ribbon "Text Editor" then ran the code...

Any help would be appreciated, thx.

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Acad2010 Double Click Actions for Mleader
« Reply #3 on: December 15, 2009, 01:12:39 PM »
Loving the icons  8-)

BazzaCAD

  • Guest
Re: Acad2010 Double Click Actions for Mleader
« Reply #4 on: December 15, 2009, 01:16:03 PM »
Thanks.
It's so frustration when you have something working great in one version then it breaks in another, but I guess that's what Adsk does..  :cry:

Bryco

  • Water Moccasin
  • Posts: 1883
Re: Acad2010 Double Click Actions for Mleader
« Reply #5 on: December 15, 2009, 04:07:35 PM »
I noticed 2008 doubleclicks the same  for the leader and the text (like you suggest) whereas 2010 has 2 different methods. If you set DBLCLKEDIT  off, do you get the same behaviour?

BazzaCAD

  • Guest
Re: Acad2010 Double Click Actions for Mleader
« Reply #6 on: December 15, 2009, 04:12:23 PM »
If I set DBLCLKEDIT = off & Dbl. Clk. it, then nothing happens.

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Acad2010 Double Click Actions for Mleader
« Reply #7 on: December 15, 2009, 05:12:12 PM »
I am not 100% sure how it was accomplished, but I have seen custom icons like that added to the contextual ribbon (from what I saw it would automatically insert the symbols, not just copy them to the clipboard), I tried to get their CUI file, but unfortunately I was unable to.

BazzaCAD

  • Guest
Re: Acad2010 Double Click Actions for Mleader
« Reply #8 on: December 15, 2009, 05:24:42 PM »
Oh that would be great if you could get any more info or a link or something.
I asked the Adsk. developers in the beta forms if there where any .NET calls to place a sting into the editor & they said there wasn't, so I'd be interested in seeing how this is done. Maybe they wrote some ObjectARX to do it..

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Acad2010 Double Click Actions for Mleader
« Reply #9 on: December 15, 2009, 05:43:12 PM »
No, I think it was done purely by editing the .cui file in the cui editor (possibly by using Notepad as well, I am not sure, I do now that this can be done by extracting the files from the .cuix file, which is really just a .zip file, then rezipping it up) When I have a minute, I will play around with it and see if I can get it to work.