Hi,
I am trying to access shapes Id in a visio file sampleVisio.png (42.2 KB)
which are connected using a dynamic connector.
For eg I am trying to see to which other shapes is my first shape connected to
I am reading all the shapes and saving there ID with the following code
foreach (Aspose.Diagram.Shape shape in vsdDiagram.Pages[0].Shapes)
{
// Display information about the shapes
Console.WriteLine("\nShape ID : " + shape.ID);
Console.WriteLine("Name : " + shape.Name);
// Console.WriteLine("Master Shape : " + shape.Master.Name);
}
and connection info using
foreach (Aspose.Diagram.Connect connector in vdxDiagram.Pages[0].Connects)
{
// Display information about the Connectors
Console.WriteLine("\nFrom Shape ID : " + connector.FromSheet);
Console.WriteLine("To Shape ID : " + connector.ToSheet);
}
However the connection Id’s don’t match