Build and Run the Plug-In Print this Topic Previous Page Up One Level Next page

Home >  UModel Programmer's Reference > UModel IDE Plug-Ins > How to Create a UModel IDE Plug-In >

Build and Run the Plug-In

After you have followed the steps above, build the solution with Visual Studio (on the Build menu, click Build Solution).


Important notes

Building the plug-in requires access to registry; therefore, make sure to run Visual Studio as administrator.
If you have a 64-bit operating system and are using a 32-bit installation of UModel, add the x86 platform in the solution's Configuration Manager and build the sample using this configuration. To access Configuration Manager, run the menu command Build | Configuration Manager.
In Solution Explorer, click the referenced library (UModelPlugInLib). Find the Embed Interop Types property in the Properties window and make sure that this property is set to False.


After building your C# project, you can add the plug-in to UModel and test it as follows:


1.Start UModel (or restart it if applicable; this ensures that the plug-in information is read correctly from the registry).
2.On the Tools menu, click Customize.
3.On the Plug-Ins tab, click Add Plug-In..., and select the plug-in .dll file (in this example, HelloWorldPlugIn.dll):


The Edit menu of UModel now contains a new menu command called Hello world. Run this command to display a dialog box with the "Hello, World!" message.

© 2019 Altova GmbH