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

AVEVA™ Unified Engineering

PML User Example

  • Last UpdatedJan 12, 2026
  • 1 minute read

Copyright 2025 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved in original code only.

--File: excuteModel.pmlfnc

--Type: Function

--Group: General

--Keyword: Integrator

--Module: Design

--Replaces: None

--

--Author:

--Created:

--Description:

--

--Return:

--[Data Type] [Description]

--

import 'Aveva.Core3D.Interaction.Generic'

handle (1000, 0)

-- Already imported, safe to ignore

elsehandle any

write !!error.text

--TODO add sensible error handling

endhandle

define method .executeModel()

using namespace

'Aveva.Core3D.Interaction.Generic.PredictiveGenDAI'

!predictHelper = object PREDICT('ModelName')

if(!predictHelper.LoadModel() eq FALSE) then

return

endif

--For a list of available features

!results = !predictHelper.GetFeaturesList()

--Create FEATUREOPTIONS class object to store your features for prediction.

!featureOptions1 = object FEATUREOPTIONS()

--Add all feature names

featureOptions1.addFeature('feature1', 'value1')

featureOptions1.addFeature('feature2', 'value2')

featureOptions1.addFeature('feature3', 'value3')

--Set the features

!predictHelper.SetFeatures(!featureOptions1)

--Get the predicted value from the model

!value = !predictHelper.PredictValue()

$p $!value

endmethod

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