I am looking for a function that would return the managed workspace profile on a project. Am I just not seeing it in the PWPS_DAB?
You can get the blocks that are assigned to a folder using:
Get-PWFolders -FolderPath "Path\to\folder" -JustOne | Get-PWManagedWorkspaces
although in my testing it only works for folders immediately under Documents. Any subfolders returns nothing.
oh i figured it out, it only lists configuration blocks directly assigned to the folder. if all the blocks are inherited it shows nothing. if 1 block is directly assigned, and 5 are inherited it'll show the one block.
Brian - I think this maybe a bug from what's expected? I would imagine returning inherited blocks with an additional property of "InheritedFrom" and the path to the folder it's inheriting that block from would be more useful.
Thanks for the response. I was aware of this function, but I was looking for a way to get the Managed workspace profiles not the CSB's. We will often assign an autocad profile as a workspace profile. I didn't see a parameter in the function you mentioned or any other function that would seem to do that.
ah, terminology confusion. It's just called the "Workspace Profile" not the "Managed Workspace Profile". Managed refers to the csb's and having files/variables in ProjectWise. The workspace profile isn't considered managed.
But beside that point you are correct, there is no way to get that info currently. I thought I'd requested this in the past but i don't remember now. Personally I'd like to see it returned as a standard property on a folder/file like Environment is.