Before Manufacturing Toolkit can be used, a license activation is necessary.
The MTK licensing workflow uses two license types:
Both licenses are required to use MTK APIs.
The development license is provided as a language-specific source file (*.cxx for C++, *.cs for C#, .java for Java and *.py for Python). Include this file in your project before building or running your application.
For compiled languages, the development license is compiled into your application. For interpreted languages, the development license file must be available to the interpreter at runtime.
The development license is embedded into your application and links it to the licensing information in Customer Corner. This information defines enabled MTK capabilities, such as import formats, manufacturing processes, and add-ons. Since these capabilities are resolved through the licensing service, your license can be extended without rebuilding your application.
The runtime license defines usage limits, such as the number of imported parts for part-based licensing (Model A) or the maximum number of concurrent processes for concurrency-based licensing (Model B) . Usage information and remaining limits are available in Customer Corner.
In production, place the runtime license file in the same directory as the application executable. Only one runtime license file should be placed next to the executable. The runtime license must match the development license embedded into your application.
For development and debugging scenarios, MTK examples may use a helper or an environment variable to specify the runtime license location explicitly. This approach is intended for development convenience and is not recommended as the default production layout. Avoid hardcoded absolute paths to the runtime license file in production deployments.
For closed deployment environments, an on-premises licensing option is available for concurrency-based licensing (Model B). For details, contact CADEX support.
The license files do not expose the list of enabled modules, formats or add-ons. This information is available in Customer Corner.
In Customer Corner, you can view license details, runtime licenses, enabled modules and formats, usage statistics and remaining limits.
For runtime licensing and usage accounting, MTK may send usage information to the licensing service. This information is used to validate runtime licenses, calculate usage and show statistics in Customer Corner.
Depending on the runtime licensing model, the collected data may include:
Before using MTK APIs, make the runtime license file available to the application and activate the development license through LicenseManager.
The examples below use LicenseHelper to locate the runtime license file during development. In production applications, the recommended approach is to place the runtime license file next to the executable.
License activation may fail for various reasons. Use try / catch blocks, as shown in the examples above, to handle LicenseError separately from other runtime errors.
For development and debugging, you can specify the runtime license location explicitly, for example by using the MTK_RUNTIME_KEY_LOCATION environment variable or LicenseManager.SetRuntimeKeyLocation() . However, explicit runtime license locations are not recommended for production deployments. In production, place the runtime license file next to the executable and avoid hardcoded paths to the runtime license file.
See also: