Howdy,
I'm finding that when trying to get a list of references of a file with a healthy amount of references, the command just sits there.. indefinitely.
This is also true even if setting the depth to 0, or 1.
A) is anyone else experiencing this?
B) can we have some sort of verbose switch?
Paul
Paul,
What cmdlet you've tried?
This is working for me. e.g. Get-PWDocumentsBySearch -FolderPath "testFolder" -GetAttributes | Where-Object {$_.FileName -eq "test.dgn"} | Get-PWReferenceFiles -referencelevel 0 | Select FileName,FullPath
BR,Arturas
Arturus,
When I run the above command on a group of files and change the -referenceleve to 1, I get a list of references with a nest depth of 1, but there doesn't seem to be a way to tell what the master file is. For example, if I have SheetOne.dgn and SheetTwo.dgn, each with nested references, When I run the above command I get a list of the files on level 1 but no way to tell which sheet is referencign the files. Am I missing something obvious here, or is there a better way to generate the list?
Matt
Matt,
In that case if you want to see SheetOne.dgn and then all its references, then SheetTwo.dgn and its references you could use something like this:
$masters = Get-PWDocumentsBySearch -FolderPath "NR\Master" -GetAttributes | Where-Object {$_.FileName -ilike "*.dgn"}
Foreach ($master in $masters){
Write-Host "Master file: $($master.FileName)" -ForegroundColor Green
(Get-PWReferenceFiles -InputDocument $master).Filename
}