Hi,
Attached is an example Visio file and all the code is in Java.
Sorry if I’m misunderstanding this, but it appears as though some separator shapes have incorrect relationship data in them. From the example below it appears as though all separators in the attached Visio file are related to the container with id: 5, when in fact I believe two of them should be related to container with id: 5 and the last one should be related to container with id: 20. Hopefully that makes sense.
//Values hard coded for simplicities sake
ShapeCollection shapeCollection = vsdxDiagram.getPages().get(0).getShapes();
Shape separatorOne = shapeCollection.get(7);
Shape separatorTwo = shapeCollection.get(8);
Shape separatorThree = shapeCollection.get(10);
System.out.println("Separator One’s relationships: " + separatorOne.getLayout().getRelationships().getUfe().getF());
System.out.println("Separator Two’s relationships: " + separatorTwo.getLayout().getRelationships().getUfe().getF());
System.out.println("Separator Three’s relationships: " + separatorThree.getLayout().getRelationships().getUfe().getF());
Output:
Separator One’s relationships: SUM(DEPENDSON(5,Sheet.9!SheetRef()))
Separator Two’s relationships: SUM(DEPENDSON(5,Sheet.9!SheetRef()))
Separator Three’s relationships: SUM(DEPENDSON(5,Sheet.24!SheetRef()))
Expected:
Separator One’s relationships: SUM(DEPENDSON(5,Sheet.9!SheetRef()))
Separator Two’s relationships: SUM(DEPENDSON(5,Sheet.9!SheetRef()))
Separator Three’s relationships: SUM(DEPENDSON(20,Sheet.24!SheetRef()))<a class=“attachment”
href="/uploads/default/69908">Separators_Example.zip (43.5 KB)