Anyone have experience using VBA to retrieve the WorkspaceID for a diagram or definition?
I am trying to write a macro to display the diagrams that have been either created or updated in the current workspace. I know there is a way to do this because the workspaceID is displayed when merging workspaces and I can display the WorkspaceID using the reporting system within SA.
It is not immediately obvious how to obtain this data using VBA - it is not a property on the diagram and I can't find anyting in the doc revealing how to obtain this data using VBA (not a metric, field, or relation as far as I can tell).
Pinned topic Getting workspaceID for a diagram
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-13T17:39:29Z at 2012-11-13T17:39:29Z by SystemAdmin
Re: Getting workspaceID for a diagram2012-11-12T21:45:48ZThis is the accepted answer. This is the accepted answer.I still can't find an obvious way to do this, but I did figure out an inglorious workaround. Involves using the ExecuteReport method (because I can retrieve the workspaceid through the report interface), then reading the generated XML file to select the current workspace items and load those into a scripting dictionary. Then the dictionary is available to compare objects (by ddid) to determine if they belong to the current workspace.
This is a long way to go to get what I need, so if anyone figures out how to access the workspaceid for a diagram/definition more directly, please share.
Re: Getting workspaceID for a diagram2012-11-13T17:39:29ZThis is the accepted answer. This is the accepted answer.
- ArifH 2700020US4
What I would like to see is a similar method for a diagram/definition that would return the workspaceid.