You are here: User Customizations > Creating Plug-Ins for Innovator > Plug-Ins with No User Interface

Plug-Ins with No User Interface

Plug-ins with no user interface monitor window messages or evaluate a control file.

A plug-in does not necessarily need to extend the Innovator interface with its own interface elements. There are two use cases where plug-ins work hidden in the background.

Monitoring Messages

The requirement that other actions are carried out automatically when changes are made to the model is conceivable. e.g. once a class has been created, certain standard methods and properties are generated for this class.

Refresh messages are sent when changes are made tot he model. A MessageHandler is needed to check Refresh messages and carry out any further action that may be necessary. MessageHandler is normally linked to a window which only gets messages for tool windows if it is visible. A solution using windows is also not the ideal solution. The IMessageHandable interface can be used to help.

IMessageHandable

The class that realizes IApplicationComponent rcan also realize the IMessageHandable interface. This interface contains a method delivered by the message handler recognized by the window:

void IMessageHandable.MessageHandler(WindowMessage)

The handler contains all messages apart from those that are sent directly to individual windows (Activated, Deactivated, Command).

Note:

See the MID.Innovator.Plugin.Sample.HandleMessage sample for using the IMessageHandable interface.

Evaluation of a Control File

The Innovator interface can be started using a control file as call parameter. The control file contains the data needed for logging-in to a model, the respective plug-in responsible for processing the file, and other data. Once you have logged-in to a model, a HandleControlFile message is sent to the plug-in; this can then make further evaluations of the control file. This flow should show documentation generation as an example:

Note:

See the MID.Innovator.Plugin.Sample.ControlFile sample for evaluating the control file.

 

 

© 1986-2014 MID GmbH Nuremberg Germany. DIN EN 9001 certified. All rights reserved.