digitalthread.uri.simulink.toObject
R2026bSyntax
Description
returns the Simulink® object identified by the digital thread URI and loads the associated
model.obj = digitalthread.uri.simulink.toObject(storageMap,uri)
A digital thread URI is a stable identifier for an artifact, such as a model, or an artifact within that file, such as a block. The digital thread uses these URIs as a consistent way to refer to artifacts across tools and inside metric results.
Use this function to retrieve the Simulink object identified by the digital thread URI. You can then work directly with that model element.
Note
The URI must identify a specific element within the model, such as a block or
subsystem. This function does not support the URI of a model file. To get the file path
for a URI of a model file, use digitalthread.uri.toAbsoluteFilePath instead.
You might already have a digital thread URI of interest from your metric results. If
not, you can get the digital thread URI from a specific Simulink element by using the other functions in the
digitalthread.uri.simulink namespace, such as digitalthread.uri.simulink.fromObject.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b