CADMATIC Web API Installer

You can use the CADMATIC Web API Installer dialog to install, upgrade, and uninstall CADMATIC Web API services, and to access the management tools of the Web API.

To access this dialog, do one of the following:

  • Select Start > CADMATIC > Web API Installer.

  • Browse to the %PMS_RUNDIR%/webapi/WebApiInstaller folder of your CADMATIC Plant/Outfitting installation, and run the WebApiInstaller.exe file as an administrator.

    Note: %PMS_RUNDIR% refers to the path C:\Cadmatic\cxxx\pmsxxx0.nt (Plant) or C:\Cadmatic\coxxx\pmsxxx0.nt (Marine) where xxx is the version number of the CADMATIC release.

Installing a service

You can install multiple CADMATIC Web API services, and different versions of the services, to the same environment.

In a multi-site scenario, the Web API can be installed to an online replica site. Some of the endpoints request the ownership of objects directly from COS.

Prerequisites

  • You have administrator privileges on the target computer.

Do the following:

  1. Open the CADMATIC Web API Installer dialog.

  2. Click Install New. The Install New Service dialog opens.

  3. Define the following settings:

    • Service name – Enter a unique name for the service. The name cannot contain spaces.

    • Configuration directory – Select the CADMATIC Plant/Outfitting configuration folder.

      Tip: The configuration folder has the ".stc" suffix in its name (<workstationname>.stc), and it contains the workstation profiles in the wsprofile subfolder.

    • Workstation profile – Select the workstation profile that the service is to use.

    • Data Directory – The service stores its data in %ProgramData%\CADMATIC\WebApi\<service name> by default; click Browse if you want to change this location.

      Important: The data folder must be empty and located on a local drive: you cannot use a network drive for this. The service account must have modify rights to the selected folder, or the service installation will fail.

    • Service account – Select the account type that the service is to use.

      Tip: In production environments, the account type is usually set to either Local Service or Network Service. For more information on service accounts, see https://docs.microsoft.com/en-us/windows/win32/services/service-user-accounts.

    • Start on system startup – Select this option if you want the service to be running whenever the computer is on. You can always start and stop the service as needed, using either the Web API management tools or Windows services.

  4. Click Install. You are prompted if the installing succeeded.

  5. You can now configure the service as described in Configuring a service and then start it as described in Starting a service.

Upgrading a service

If CADMATIC Plant/Outfitting has been upgraded to a new version, you can also upgrade the related Web API services to that version.

Do the following:

  1. Open the CADMATIC Web API Installer dialog.

  2. Select the service to be upgraded, and click Upgrade.

  3. In the Upgrade Service dialog, review the following settings.

    • Configuration directory – Make sure the correct configuration folder is selected.

    • Workstation profile – Make sure the correct workstation profile is selected.

  4. Click OK. You are prompted if the upgrade succeeded.

Uninstalling a service

You can uninstall a CADMATIC Web API service that is no longer needed. This also deletes the Plant Modeller areas that the service has been using, and if you choose, the configuration files that the service has been using.

Do the following:

  1. Open the CADMATIC Web API Installer dialog.

  2. Select the service to be removed, and click Uninstall. You are prompted if the uninstalling succeeded.

  3. You are prompted whether to delete the configuration files that the service has been using.