1
Automation Interface, Add-Ins and Tools / Re: MDG Tech not enabled after EA_OnInitialize
« on: August 07, 2012, 09:04:39 am »
After turning in a bug report on this, it turns out that EA has a "feature" that I had to overcome. It turns out that in my testing/investigations I had clicked on the enable/disable checkbox for our MDG tech. It seems that if the user "EVER" enables/disables the MDG tech in the "Settings>MDG Technologies ..." dialog, it adds a techid enable/disable string to the registry at (may vary with your version): HKCU\Software\Sparx Systems\EA400\EA\OPTIONS\MDG_TECHNOLOGY_STATUS
The string is of format: techID=0|1;
This value in the registry will forever more rule the enable/disable capability of your tech. There is no way for a user to get rid of this string without editing the registry (not something we want a user to mess with). As we want to make our UML profile and MDG tech the default on startup, I added code to the event handlers to search for and remove the enable/disable string during startup/shutdown. It doesn't prevent the user from disabling our tech, but is does insure that the next time EA starts, our tech is enabled and made the default tech.
To make your tech the default, write to the same OPTIONS key above, but set key (may vary with your version) MY_TECHNOLOGY to the value of your techid
The string is of format: techID=0|1;
This value in the registry will forever more rule the enable/disable capability of your tech. There is no way for a user to get rid of this string without editing the registry (not something we want a user to mess with). As we want to make our UML profile and MDG tech the default on startup, I added code to the event handlers to search for and remove the enable/disable string during startup/shutdown. It doesn't prevent the user from disabling our tech, but is does insure that the next time EA starts, our tech is enabled and made the default tech.
To make your tech the default, write to the same OPTIONS key above, but set key (may vary with your version) MY_TECHNOLOGY to the value of your techid