The Autodesk Vault Thin Client URL, such as http://vault/AutodeskTC/Vault/viewer?file=1781390, typically uses the File Master ID (a unique numerical identifier) to reference files because this is the primary key used internally by Vault. However, using a file path instead of the ID is not natively supported by the Thin Client out of the box. Here's why and what you can do about it:
Why Path-Based URLs Are Challenging
- Internal Architecture: Vault uses File Master IDs for efficient database queries and security. Paths are hierarchical and not as straightforward for direct URL mapping.
- Ambiguity: Paths might not always be unique (e.g., files with the same name in different folders), whereas Master IDs are globally unique.
- Security: Using paths could expose directory structures or file hierarchies, which might not align with Vault's security model.
Possible Workarounds
While you can’t directly replace the file=ID parameter with a path in the Thin Client URL, here are alternatives to achieve similar functionality:
1. Use the Vault REST API to Resolve Paths to IDs
-
Step 1: Query the Vault REST API to get the File Master ID by path.
GET /api/v1/files?path=/Path/To/Your/File.dwg
-
Step 2: Extract the fileMasterId from the API response.
-
Step 3: Construct the Thin Client URL dynamically using the retrieved ID:
http://vault/AutodeskTC/Vault/viewer?file={fileMasterId}
This approach requires scripting or automation to handle the API call and URL construction.
2. Configure URL Rewriting (Advanced)
If you have control over the web server hosting the Thin Client (e.g., IIS, Apache), you could:
-
Set up a reverse proxy or URL rewrite rule to map paths to IDs.
-
For example, map /file/Path/To/Your/File.dwg to the corresponding file=ID URL.
Note: This requires:
- A way to programmatically map paths to IDs (e.g., via the Vault API).
- Server-side configuration and scripting expertise.
3. Use a Custom Bookmark or Script
Create a script or bookmarklet that:
- Takes a file path as input.
- Queries Vault to get the File Master ID.
- Redirects to the Thin Client URL with the ID.
Example (JavaScript for a bookmarklet):
javascript:(function(){
const path = prompt("Enter file path:");
fetch('/api/v1/files?path=' + path)
.then(response => response.json())
.then(data => window.location.href = `http://vault/AutodeskTC/Vault/viewer?file=${data.fileMasterId}`);
})();
4. Use Vault's Search or Navigation Features
If modifying URLs isn’t feasible, consider:
- Using Vault’s Search feature within the Thin Client to locate files by name/path.
- Creating Favorites or Shortcuts to frequently accessed files.
Conclusion
While the Thin Client does not natively support path-based URLs, you can bridge the gap using the Vault API to resolve paths to IDs programmatically. For non-technical users, leveraging Vault’s built-in search or favorites might be simpler. If automation is required, integrating the API with a script or custom tool is the most robust solution.
For more details, refer to the Autodesk Vault REST API documentation or consult your IT team to explore server-side configurations.