digitalthread.uri.toRelativeFilePath
R2026bDescription
converts a digital thread URI to a relative file path.relPath = digitalthread.uri.toRelativeFilePath(uri)
Unlike other digitalthread.uri functions,
digitalthread.uri.toRelativeFilePath does not require a storageMap
argument because the digital thread can find the relative path directly from the
URI.
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 retrieve the file that a digital thread URI refers to. You can then work directly with that file.
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 file by using the other functions in
the digitalthread.uri namespace, such as
digitalthread.uri.fromFilePath.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b