@@ -0,0 +1,820 @@
+package com.aspose.diagram.examples.Shapes;%0A%0Aimport com.aspose.diagram.Diagram;%0Aimport com.aspose.diagram.Shape;%0Aimport com.aspose.diagram.examples.Utils;%0A%0Apublic class GetAllDependsOnShapes %7B%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09// ExStart:GetAllDependsOnShapes%0A%09%09// The path to the documents directory.%0A%09%09String dataDir = Utils.getSharedDataDir(GetAllDependsOnShapes.class) + %22Shapes/%22;%0A%09%09// call a Diagram class constructor to load the VSDX diagram%0A%09%09Diagram diagram = new Diagram(dataDir + %22Drawing1.vsdx%22);%0A%09%09// get shape by id%0A%09%09Shape shape = diagram.getPages().getPage(%22Page-3%22).getShapes().getShape(16);%0A%09%09// get dependsOnShapes shapes%0A    long%5B%5D shapeids = shape.dependsOnShapes();    %0A    System.out.println(shape.getName() + %22 - %22 + shapeids%5B0%5D);%0A%09%09// ExEnd:GetAllDependsOnShapes%0A%09%7D%0A%7D%0A

Add example for DependsOnShapes