Hello,
First of all , Thank you for the help that you provide in all the cases that we brought to you.
Today we have a special case with a Visio where the outgoing nodes are not retrieved through aspose.
In the attached file you will find a visio file that you can test with the code below :
String dataDir = “C://Users//ark//Desktop//Visio Import//Diagrams//”;
// Call the diagram constructor to load diagram
Diagram diagram = new Diagram(dataDir + “Drawing1_simple_test.vsdx”);
for (Shape shape : (Iterable) diagram.getPages().get(0).getShapes()) {
if (!shape.getOneD()) {
long[] connectedShapeIds = shape.connectedShapes(ConnectedShapesFlags.CONNECTED_SHAPES_OUTGOING_NODES, null);
System.out.println(“Shape Id : " + shape.getID() + " NumberConnected : " + connectedShapeIds.length);
if (connectedShapeIds.length > 0) {
for (long id : connectedShapeIds) {
System.out.println(“OutGoing Shape id: " + id);
System.out.println(”----------------------------”);
}
}
}
System.out.println("********************");
}
System.out.println(“Process Completed Successfully”);
The result of this test will show you that no shape had an going node. this result is false because in the file attached you will find that the shape “book airline ticket” with the ID: 141 has an ongoing node.
Thanks in advanceDrawing1_simple_test.zip (122.0 KB)