slmetric.Engine Class
R2026bNamespace: slmetric
(To be removed) Collect metric data on models or model components
The Metrics Dashboard app, model metrics, slmetric API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Design Dashboards.
Description
Use a slmetric.Engine object to collect metric data on models by
calling execute. Use getMetrics to access the metric data and return an array of slmetric.metric.ResultCollection objects. This metric data is persistent in the
simulation cache folder. Future instantiations of the slmetric.Engine
object for the same model can access the cached metric data without regenerating the metric
data.
The slmetric.Engine class is a handle class.
Creation
Description
metric_engine = slmetric.Engine() creates a metric engine
object.