namespace TestAspose
{
class Program
{
static void Main(string[] args)
{
var vssPath = "C:\\vsdTest\\test.vssx";
// create a new diagram
var diagram = new Diagram(vssPath);
// add a new dynamic connector
diagram.AddMaster(vssPath, "3DDynamic connector");
long shapeId = diagram.Pages[0].AddShape(4.25, 5.5, 2, 1, "3DDynamic connector");
var shape = diagram.Pages[0].Shapes.GetShape(shapeId);
// save the diagram in VDX format
diagram.Save("output.vsdx", SaveFileFormat.VSDX);
Console.WriteLine("Hello World!");
}
}
}
The code above add a shape to a page. With the version 20.3 of Aspose.Diagram, the shape returned by diagram.Pages[0].Shapes.GetShape(shapeId); had an attribute Geoms which was a list with a Count equal to 1. In version 20.4 and above, the count is equal to 0 which prevents me from changing the Shape geoms. When drawn, the geometry will apear. If I try to add another Geom object manually, 2 geometry will appear in Visio. See picture.
image.png (5.3 KB)
Is this behaviour intended?
Thank you for the help