メインコンテンツ

Design Reference Details

R2026b
Since R2026b

Metric ID

modeldesign.ReuseAnalysis[slcomp.DesignReferenceDetails]

Description

This metric returns detailed information about the design elements that each unit reuses, including referenced models, linked libraries, and subsystem references. Use this metric to identify the specific reused elements within each unit.

Supported Artifacts

This metric collects metric results for Units in the project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.

Collection

To collect data for this metric, execute the metric engine with the metric ID.

metric_engine = metric.Engine;
results = execute(metric_engine,"modeldesign.ReuseAnalysis[slcomp.DesignReferenceDetails]")

View the metric result values for a specific unit.

results(1).Value
results(1).ScopeAlias

To collect both the summary and detailed reuse metrics in a single call, use empty bracket syntax. Use the MetricID property to distinguish between results.

results = execute(metric_engine,"modeldesign.ReuseAnalysis[]")

Results

The metric returns an array of metric.Result objects, one for each unit in the project. Use the Value property of the metric result object to view the metric result values. Use the ScopeId and ScopeAlias properties to identify which unit the result belongs to.

The ScopeAlias property returns the name of the unit.

The Value property returns a structure with these fields:

  • Models — Array of structures identifying referenced models. Each structure has fields:

    • URI — Digital thread URI that uniquely identifies the referenced model in the project

    • Alias — Name of the referenced model

  • Libraries — Array of structures identifying linked library blocks. Each structure has fields:

    • URI — Digital thread URI that uniquely identifies the library block in the project

    • Alias — Name of the linked library block

  • SubSystems — Array of structures identifying subsystem references. Each structure has fields:

    • URI — Digital thread URI that uniquely identifies the subsystem reference in the project

    • Alias — Name of the subsystem reference

When a unit has no reused elements of a given type, the corresponding field is empty.

See Also

Topics