Types/OpenPackage.Part/get_Related.ps1

<#
.SYNOPSIS
    Get Related Part information
.DESCRIPTION
    Get Package Part and Package Relationships
.NOTES
    This will`.GetRelationships()` from the current part,
    then `.GetRelationships()` from the package.
#>

if (-not $this.GetRelationships) {
    return
}

@(    
    $this.GetRelationships()
    if ($this.Package -is [IO.Packaging.Package]) {
        $this.Package.GetRelationships()
    }
)