To Install NModel
, you must have .NET. You do not need Visual Studio, but it is convenient to have
for example the express edition
of Visual Studio in order to use the solution files (.sln
Obtain .NET from Microsoft. The latest version is
. If you already have version 2 or 3, they work too. You may already have .NET; it is included with Vista and with Visual Studio.
From the NModel Releases
tab (above) or the Current Release
(right), download the runtime binary,
. Open the
file and follow the prompts. Choose Typical Install
Executing the .msi
file installs the NModel
, the four programs
, and the online help. This is all you need to run the
, and to create and use your own
. This Codeplex site also provides the source code to NModel, but you do not have to build from source to use it.
In order to run
(the Model Program Viewer utility), you must also install the graph layout engine
. Notice that GLEE uses a less permissive license than NModel.
After you have installed both NModel and GLEE, you must copy the GLEE DLLs into the NModel bin directory. In a typical installation where both are installed at their default locations, you could accomplish that by
cd C:\Program Files\Microsoft Research\GLEE\bin
copy *.dll ..\..\..\NModel\bin
On Vista you must do this as administrator (open Command Prompt with Run as administrator).
Alternatively to mpv
(or in addition to it), you may use
(Model Program to Dot). The mp2dot
program does not require GLEE, and is covered by the more permissive NModel license.
programs can generate output files in the
graph layout language. In order to display their contents, you will need programs that can process
, for example in the
package. Its GVedit
and can save files in several formats, including Postscript and SVG. Its
program also generates Postscript. You can display PostScript in a viewer such as
, and display SVG in most browsers (Internet Explorer requires a plugin for this).
includes a batch command file dotps.bat
that generates Postscript from a
file and optionally displays it, using Graphviz and GSview. There is also
, which invokes
It is convenient to add the path C:\Program Files\NModel\bin
environment variable (the .msi
file adoes not do this automatically). Then you can use the commands
, and ct
without prefixing them with the path.