Outgoing Nodes not Connected

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)

@eljuventino,

We are investigating your query and will get back to you soon.

@eljuventino,

We managed to replicate the problem of not retrieving outgoing nodes. It has been logged under the ticket ID DIAGRAMJAVA-50572 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

@eljuventino,

The linked ticket ID DIAGRAMJAVA-50572 has been fixed. Please download and try the latest Hotfix version: Aspose.Diagram for Java 17.11.1, and then let us know how that goes into your environment.

@eljuventino,

The fix of linked ticket ID DIAGRAMJAVA-50572 has been included in the full version 17.12. Please download and try the latest version 17.12 of Aspose.Diagram for Java API.