Implementation displays in Engineering UI

Definitions

This display allows you to monitor Calculation definitions in one table.

PropertyData typeDescription
NameStringName of the calculation in Calc Catalog. Must be unique.
DescriptionStringOptional description of calculation.
CodeStringThe code for the calculation.
CodeTypeEnumThe type of code in the code property. Currently it can be C# or Simplified C#.
DisabledBooleanIf set to true, calculations based on this Calc definition will be suspended.
ErrorMessageString(json)Will contain any errors/warnings encountered during the compilation of this Calc Definition in JSON format. In case of a successful compilation, the errors array will be empty. In case of a successful compilation, the errors array will be empty.
CompilationStatusEnumShows if compilation was successful or failed.
LastCompilationTimeDateTimeShows timestamp when compilation was successful last time.
GroupStringShows user group allowed to see and modify the calculation

Parameters

This display shows input and output parameters and allows you to monitor them. These are visible in the code editor.

PropertyData TypeDescription
NameStringThe name with which the parameter is used in the CalcDefinition code.
Definitionref. CalcDefinitionReference to the CalcDefinition (code name) to which this parameter belongs.
Typeref. CalcParameterTypeReference to the CalcParameterType that defines the compile-time type of this parameter.
ArrayDimensionsInt32The number of desired array dimensions in the parameter type. If the parameter is not supposed to be an array, set to 0.
IsOutputBooleanShows whether this parameter is an output or not.

Parameter Types

This display allows you to see list of parameter types. These are generated by the Calc Engine backend.

PropertyData TypeDescription
NameStringDescriptive name for the type
TypeNameStringString passed to System.Type.GetType() to get the represented .NET type. Not used when EquipmentType != null.
EquipmentTyperef. EquipmentIf not null, represents the Equipment for which this type is a helper class.
EquipmentDataSourceref. CalcDataSourceData source of the calculation.

External Libraries

This display allows you to monitor and configure External Libraries to be available for your calculation.

CalcExternalLibrary is a new Calculation Tool class that provides support for using third-party code in the calculations. This class resides under the Implementation group in the navigation tree. See further information and examples in our using third-party code article.

PropertyData TypeDescription
NameStringThe name for this external code link. It must be unique.
Typeenum Calc External Library TypeThe type of the external code link. It defines what field will be read when registering this third-party code and can either be Code Snippet C# or DLL (File Path).
CodeSnippetStringThis field holds the third-party code, if the type was selected as Code Snippet C#.
DLLPathStringThis field holds an absolute path, a relative path from the Vtrin installation directory, and an environment variable path to the compiled third-party code if the type was selected as DLL (File Path).

Did this page help you?