Granular relationship information for shapes in Visio diagram

Is there currently a way to retrieve the relationship information for a given shape along with the type of relationship it has to other shapes in a diagram? I can retrieve the formula for a shape, but is there a way to retrieve a mapping of relationship type to shapes? This is in Java.

As an example given the attached diagram the Gateway shape has a ‘member of container’ relationship to the Swimlane List, Pool / Lane, and Separator shapes. As well as an associated callout relationship with the Orb shape. I am basing the relationship information off of this Relationship reference page: Relationships Cell (Shape Layout Section)

Looking at the shape sheet for the Gateway shape you can see in the relationship cell the following (formatted for readability):

SUM(
   DEPENDSON(3, Orb!SheetRef()),
   DEPENDSON(4, Swimlane List!SheetRef(),
                'Pool / Lane'!SheetRef(),
                Separator!SheetRef()
            )
)

Another reference is this archive of the Visio Insights blog: New ShapeSheet Cells and Functions in Visio 2010 – Archive of Visio Insights blog (2006-2018) Scroll down to the section titled Relationships cell.

example_diagram.zip (46.6 KB)

@wwats
Thanks for the template file and links.
We can now obtain the dependent shapes of a shape through ‘shape.dependsOnShapes’ , but currently, it does not support obtaining the types of relationship.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMNET-53211

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as DIAGRAMNET-53211) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou

Thank you for the work on this issue. Is it currently possible at the moment to get a mapping of RelationFlag to ShapeCollection if given a singular shape, or do I have to have both shapes to check if they have a relationship? The mapping would be extremely useful compared to having to check every shape against every other shape.

@wwats
Thank you for the advice you provided.
We will continue to support this feature.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMNET-53227

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as DIAGRAMNET-53227) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou