List of files in the document sets

I have over 50 document sets in a directory, is there a way to extract a list of all the files that are in these document sets without opening each one, sort of batch extract the list of documents.

Parents
  • yes in powershell.

    $sets = Get-PWDocumentsBySearch -FolderPath "Path\to\sets" -Slow | Where IsSet -eq $True
    foreach ($s in $sets) {
        write-host "Set $($s.FullPath):`n=========="
        $members = $s | Get-PWDocumentFlatSetMembers
        foreach ($m in $members) {
            write-host "`t$($m.Name)"
        }
        write-host "`n"
    }

    That generates output that looks like:

    Set BentleySampleData\Civil\dgn\Designs\Test Set 1:
    ==========
            BSI400-W01-Contours.dgn
    
    
    Set BentleySampleData\Civil\dgn\Designs\Test Set 2:
    ==========
            BSI400-W01-Design.dgn
            BSI400-W01-Survey.dgn

     

Reply
  • yes in powershell.

    $sets = Get-PWDocumentsBySearch -FolderPath "Path\to\sets" -Slow | Where IsSet -eq $True
    foreach ($s in $sets) {
        write-host "Set $($s.FullPath):`n=========="
        $members = $s | Get-PWDocumentFlatSetMembers
        foreach ($m in $members) {
            write-host "`t$($m.Name)"
        }
        write-host "`n"
    }

    That generates output that looks like:

    Set BentleySampleData\Civil\dgn\Designs\Test Set 1:
    ==========
            BSI400-W01-Contours.dgn
    
    
    Set BentleySampleData\Civil\dgn\Designs\Test Set 2:
    ==========
            BSI400-W01-Design.dgn
            BSI400-W01-Survey.dgn

     

Children
No Data