Skip to content

Vault Attach File

The Vault Attach File node attaches a child file to a parent file within Autodesk Vault, creating a file-to-file reference (attachment) relationship.

Purpose

Use this node to programmatically manage file attachments in Vault, establishing structured dependencies between files such as linking specification documents, images, or supporting files to CAD models.

Inputs

Field LabelInput TypeDescription
Parent File IdentifierTextThe identifier of the parent file in Vault to which the child file will be attached.
Child File IdentifierTextThe identifier of the child file in Vault to attach to the parent file.

Outputs

Output VariableDescription
ParentVaultFileThe parent file object retrieved from Vault.
ChildVaultFileThe child file object retrieved from Vault.

Functionality

This node:

  1. Validates required inputs (Parent File Identifier, Child File Identifier).
  2. Retrieves service account tokens for Autodesk Vault and general Autodesk authentication.
  3. Establishes a Vault connection using these service accounts.
  4. Retrieves the parent and child files from Vault by their identifiers.
  5. Downloads the parent file to the working folder to prepare it for attachment.
  6. Creates an attachment linking the child file to the parent file within Vault.
  7. Stores both file objects in output variables for use in subsequent tasks.

Example Use Case

✅ Attach a PDF installation guide to a CAD part file before releasing it for production.
✅ Link a specification document to an assembly file to maintain traceability within Vault.

Task Success Criteria

  • Success: Child file is successfully attached to the parent file in Vault, and both file objects are returned.
  • Failure: If Vault connection, file retrieval, download, or attachment fails, the task returns a descriptive error message indicating the failure point.

Notes

  • Ensure ServiceAccount-Autodesk Vault and ThirdParty-Autodesk service accounts are configured with valid credentials and appropriate access rights.
  • The identifiers used must be valid Vault file identifiers as recognised by VaultFileFunctions.GetFileByIdentifier.
  • The output objects (ParentVaultFile, ChildVaultFile) are Autodesk Vault file entities for further operations within your workflow.

Tentech 2024