digitalthread.uri.fromFilePath
R2026bDescription
returns the digital thread URI for the file specified by the absolute file path
uri = digitalthread.uri.fromFilePath(storageMap,filePath)filePath. The storage map, storageMap,
defines how digital thread URIs map to artifact locations.
A digital thread URI is a stable identifier for an artifact, such as a model file, 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 find the digital thread URI for a specific file. You can then use that URI as an identifier in your code to match and filter metric results for that specific file.
Note
The URI returned by this function identifies the file path only. You can use the URI
for matching and filtering, but not as a ScopeId for
execute or getMetrics. To scope metric
execution or retrieval to a specific model, use the URI from digitalthread.uri.simulink.fromObject instead.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b