Building a Noah 4 Fitting Module
Project
  • Reference dependencies:
    • ModuleAPI:
      C:\windows\Microsoft.Net\assembly\GAC_32\ModuleAPI\v4.0_2.0.0.0__53d06f3c4ff49355\ModuleAPI.dll
    • NoahDataInterfaces:
      C:\windows\Microsoft.Net\assembly\GAC_MSIL\NoahDataInterfaces\v4.0_2.0.0.0__53d06f3c4ff49355\NoahDataInterfaces.dll
Operations

Check if Noah is installed:

///----------------------------------------------------------------------------------------
/// <summary>
/// Verify whether Noah 4 is installed.
/// </summary>
/// <returns>True if found, False if not</returns>
///----------------------------------------------------------------------------------------
public static bool IsNoahInstalled()
{
    try 
    { 
        // This method tries to create an instance of ModuleAPI. If this fails, Noah is not installed.
        Himsa.Noah.Modules.ModuleAPI api = new Himsa.Noah.Modules.ModuleAPI();
        return true;
    }
    catch (System.IO.FileNotFoundException exc)
    {
        MessageBox.Show("IsNoahInstalled(): Noah System is not installed!");
        return false;
    } 
}