Configure the validation report definition - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10
  1. Set the path of the custom validation report writer assembly. For example:

    VTLCustomReportWriterDllPath="D:\CustomDlls\CustomValidationReportWriter.dll".

  2. Set the following two properties on the IVTLValidationReportDefinition interface.

    1. VTLValidationReportType - This property specifies the validation report type. This type uses the VTLValidationReportTypes enum list, which contains:

      • e1TextReport - a text report enum.

      • e1ExcelReport - a Microsoft Excel report enum.

      • e1CustomReport - a custom report enum.

      To generate the report in a custom format use the e1CustomReport enum entry.

    2. VTLCustomReportWriterDllPath - This property specifies the path to the custom validation report writer assembly. You can use the full path or relative path to the custom assembly. For example:

      • Full path - "D:\CustomDlls\CustomValidationReportWriter.dll"

      • Relative Path - "CustomValidationReportWriter.dll"

      The relative path must be based on the site Bin directory.

      For example:

      <drive>:\SmartPlant Foundation Server Files\Web_Sites\SDVTestServer\Bin.

  3. Use the following schema to create a new VTLValidationReportDefinition and use it while creating a job definition.

    SHARED Tip This sample can also be found in the ModelFiles directory in the CustomExamples folder at Smart Community. For more information, see Find sample data on Smart Community.

    <VTLValidationReportDefinition>

    <IObject UID="CustomValidationReportDefinition" Name="CustomValidationReportDefinition" Description="Customized Example Validation Report" />

    <IVTLValidationReportDefinition VTLValidationReportType="e1CustomReport" VTLCustomReportWriterDllPath=" D:\CustomDlls \Intergraph.VTL.CustomValidationReportWriters.dll" />

    </VTLValidationReportDefinition>