Difference between revisions of "How to create a MindManager add-in using Visual Studio"

From ActivityOwnerWiki
Jump to: navigation, search
(Experiences/Tips)
Line 4: Line 4:
 
In February 2011 there was a discussion on the [http://tech.groups.yahoo.com/group/MindManagerDev/ MindManagerDev yahoo group] on the relatively limited documentation of the [https://secure.mindjet.com/partners/devzone/7/devzone/Page6.html#Topic6 MindManager Object Model] and the challenges for new developers to get past the learning curve for creating add-ins for [http://mindjet.com MindManager].   
 
In February 2011 there was a discussion on the [http://tech.groups.yahoo.com/group/MindManagerDev/ MindManagerDev yahoo group] on the relatively limited documentation of the [https://secure.mindjet.com/partners/devzone/7/devzone/Page6.html#Topic6 MindManager Object Model] and the challenges for new developers to get past the learning curve for creating add-ins for [http://mindjet.com MindManager].   
  
Nigel Goult of [http://www.olympic-limited.co.uk/ Olympic Limited] generously shared a [http://www.olympic-limited.net/development/resources/MindManager_Add-in_Visual_Studio_Set_Up.pdf 7 step tutorial] on how to make a simple "Hello World" add-in for MindManager using Visual Studio.  Nigel has also provided a [http://groups.yahoo.com/group/MindManagerDev/files/ExamplMindManagerAddin.zip  full working example for download] that includes the ribbon portion.
+
Nigel Goult of [http://www.olympic-limited.co.uk/ Olympic Limited] generously shared a [http://wiki.activityowner.com/images/0/05/MindManager_Add-in_Visual_Studio_Set_Up.pdf 7 step tutorial] on how to make a simple "Hello World" add-in for MindManager using Visual Studio.  Nigel has also provided a [http://groups.yahoo.com/group/MindManagerDev/files/ExamplMindManagerAddin.zip  full working example for download] that includes the ribbon portion.
  
 
=Resources=
 
=Resources=

Revision as of 10:48, 22 December 2012

This page is intended for accumulating tips and knowhow on creating MindManager add-ins using Visual Basic in Visual Studio.

Introduction

In February 2011 there was a discussion on the MindManagerDev yahoo group on the relatively limited documentation of the MindManager Object Model and the challenges for new developers to get past the learning curve for creating add-ins for MindManager.

Nigel Goult of Olympic Limited generously shared a 7 step tutorial on how to make a simple "Hello World" add-in for MindManager using Visual Studio. Nigel has also provided a full working example for download that includes the ribbon portion.

Resources

There is additional information on add-in development in the Mindjet 7 DevZone. There is also some old information on adding commands to the user interface

New developers and hobbyists may also find the source code for MindReader in the MindManager Macro Library and the Outlook Macro Library which has BA Code for Outlinker useful for seeing examples of how to interact with the MindManager object model.

Experiences/Tips

  • "Addin name not registered". The id in the add command needs to match application name. If you are using a template (or copying from of your own projects, make sure you are careful about this. You may find the add-in works on a pc that has the earlier add-in registered but not on a user who is only seeing this one.
  • Changing the target from 8 to 9 (or 9 to 8) after initial setup:
    • Remove the reference to the MM9 Type Library
    • Once it's gone replace with the MM8 Type Library
    • Right click the SetUp Project and select "View->Registry"
    • Replace the "9" with an "8" in the following key: HKEY_LOCAL_MACHINE/Software/Mindjet/MindManager/9/Addins/YourAddinName
    • Recompile and then install.
    • Make sure you compile for the last build of MM8 (8.2.319) and exclude the Interop.
  • To add files to installation, right-click the ExamplMindManagerAddinSetup project in the Solution Explorer and then select View->File System. You will be able to create folders and files at the point of install on the users machine and target various folders.
  • General Ribbon design information
  • "Unable to connect to the Map2Excel-addin" Try to register the Add-In manually using regasm.exe to see the errormessage. Sometimes it can give problem with the dependencies for the Add-In on the

target-PC.

  • Closing the active map (from yahoo dev list):

Re: Closing unmodified maps in VB

It took a while, but Nigel and I investigated this again and found that a command that tries to close the active document will fail, because by default the callback context for command transactions is the active document itself. So it is trying to remove the object that owns the command transaction. This is the reason that it says it "cannot execute command".

The solution is to disable the automatic callback context on the command object that is executed when firing the command:

YourCommandObject.AutomaticCallbackContext = False

If any of the buttons in the ribbon, control strip icons or context menus are potentially able to close the active document, then disable this property on the associated command object.