Table of Contents

WHEREUSED Command

Description

The whereused command lists all parent files that reference a specified file.

This command helps identify assemblies or drawings that use a particular part or subassembly.

The output columns are:

  • ChildID
  • ChildName
  • ParentName
  • ParentID
  • FolderPath

Syntax

whereused -filePath|-search -csv

Parameters

  • filePath
    Full or relative path of the file to evaluate.

  • search
    Optional filter applied to parent results. Supports SQL wildcard %.

  • csv csv file name to put the results in CSV format.


Examples

Example 1: Basic Where Used

## Lists all parent files that reference `Bracket.SLDPRT`.
whereused -filePath "C:\Vault\Parts\Bracket.SLDPRT"

Example 2: Filter Parent Results

whereused -search "%.SLDASM"
## Finds the parents of all the assemblies in the current directory.

Example 3: Export to CSV

whereused -filePath "C:\Vault\Parts\Bracket.SLDPRT" -csv parents.csv
## Exports results to CSV with columns:
## ChildID,ChildName,ParentName,ParentID,FolderPath

Availability

Available since PDMShell 2.0.0 or earlier.