Skip to content

Bulk import

Bulk import brings an existing library into a vault: a project archive, a folder of standard parts or a toolbox with tens of thousands of files. It copies the files into a Managed Root, gives each one a CADVault number and registers it. The source files are never changed.

Bulk import is for administrators. Start it in SOLIDWORKS with Tools → CADVault → Batch import…. Other users who choose the command are asked to contact an administrator.

The Batch import window has four parts.

Source. The Source folder to import from.

Destination. The Managed root and optional Sub-folder to copy into, and the Folder structure: Keep structure copies the subfolders as they are, Flatten puts every file in one folder.

Options.

Option Effect
Target status The lifecycle state the imported documents end in: Draft, In work or Released. Drawings cannot be Draft and are registered as In work in that case.
SOLIDWORKS version Keeps each file in its own SOLIDWORKS version, or upgrades every file to the installed version.
Run per sub-folder above Splits large folders into separate runs above this number of files. The default is 5000.
Include Which types to import: Parts, Assemblies and Drawings. A drawing only comes in together with its model.

Properties. Analyse sample… reads the custom properties of a random sample of files, 25 by default, and shows what the library contains. In the mapping grid you decide for each vault property where its value comes from (Copy from) and which value to use when a file has none (Default when missing). For Title you can use the original file name. Values a file already has are never overwritten.

Dry run goes through the whole import without writing anything, so you can check the result first. Import starts the real run.

The import runs on a background SOLIDWORKS process, in batches of up to 50 files. For each file CADVault:

  1. takes a new number from the vault’s number scheme;
  2. copies the file to the destination under a file name built from that number;
  3. registers it, with the old name kept as Original filename;
  4. fills the custom properties from your mapping;
  5. writes CADVault’s own properties into the file; and
  6. moves the document to the target status.

Files that are already in the vault, recognized by their original file name, are skipped. Assembly references are pointed at the imported copies, so imported assemblies open with the imported parts.

The run view shows how many files are imported, skipped, have a warning or failed, and a row per file with its number and any message. Show errors only narrows the list, and Copy to clipboard copies it.

You can close the window while the import runs. Keep SOLIDWORKS open until it finishes; CADVault shows a notice when it is done. Cancel stops after the current file.

An import that did not finish, because SOLIDWORKS was closed or the connection to the vault server was lost for too long, can be resumed. Open Batch import… again and choose Resume, or Discard to drop it. The record of an unfinished run is kept on the workstation that started it.