Hello, when attempting to parse the relationships for imported VSD diagrams every shape in that diagram returns an empty collection for getRelationShapeCollection
. Looking at the shape sheet for the CFF Container shape on the first page of the attached VSD file I can see a relationship string of: =SUM(DEPENDSON(1,Phase List!SheetRef(),Swimlane List!SheetRef()))
as well as the other shapes having relationships as well.
File file = new File(PATH_TO_VSD_FILE);
Diagram d = new Diagram(file.getAbsolutePath());
Page page = d.getPages().get(0);
ShapeCollection pageShapes = page.getShapes();
for(Shape shape : (Iterable<Shape>) pageShapes)
{
System.out.println(shape.getID() + " : " + shape.getRelationShapeCollection().getCount());
}
Visio_Order_Entry_VSD.zip (137.0 KB)