Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ E3D Design

Batch Reports

  • Last UpdatedAug 14, 2025
  • 1 minute read

The PMLReport Object is used to run new reports created by the Report Designer in batch. The interface is available on the .NET ReportingAddin assembly which can be imported and used as follows:

import 'ReportingAddin'

handle (1000,0)

endhandle

using namespace 'Aveva.Pdms.Reporting'

!!report = object PMLReport()

For example, to add parameters to a parameterised report

!argNames = object array()

!argNames[1] = 'param1'

!argValues = object array()

!argValues[1] = 'value1'

!!report.addParameters(!argNames, !argValues)

To add scope to a report for limiting the data to be displayed, overriding existing scope defined in the report

! ancestorElements = '/ATEST,/BTEST'

!elements = ''

!!report.AddScope(!ancestorElements, !elements)

And to export report as csv file

!rep1 = object file('C:\rep1.repv')

!csv1 = object file('C:\rep1.csv')

!!report.exportAsCsv(!rep1.fullname(), !csv1.fullname())

Errors loading the report data can be logged by adding a handler to the response event.

The interface has the following methods:

Name

Result

Purpose

AddParameters(ARRAY argNames, ARRAY argValues)

No Result

Adds parameters to report as 2 arrays of argument names and values, which is used to generate a parameterized report

AddScope(ARRAY ancestorElements, ARRAY elements)

No Result

Specify scope value to filter the data given by array of ancestor elements and array of elements.

AddScope(ARRAY ancestorElements, ARRAY elements,

BOOLEAN fully,

REAL minX,

REAL minY,

REAL minZ,

REAL maxX,

REAL maxY,

REAL maxZ

No Result

Specify scope value to filter the data given by array of ancestor elements, array of elements, if limit box is specified then whether it is considered fully or partially, to construct limit box minX, minY, minZ, maxX, maxY, maxZ.

TitleResults for “How to create a CRG?”Also Available in