WHEREUSED Command Documentation
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%.csvcsv 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