Hi,
Thanks for you all your help. I’m creating a visio file with aspose (.vdx) I need to change the position of the shapes in the Diagram.
My function is this:
Diagram diagram = new Diagram(dataDir + “Basic Shapes.vss”);
long shapeId = diagram.AddShape(2.0, 2.0, 2, 1, @“Rectangle”, 0);
Shape shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Text.Value.Add(new Txt(@“Rectangle text.”));
// Add a new star shape
shapeId = diagram.AddShape(6.0,6.0, 2, 2, @“Star 7”, 0);
shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Text.Value.Add(new Txt(@“Star text.”));
// Add a new hexagon shape
shapeId = diagram.AddShape(7.0, 3.0, 2, 2, @“Hexagon”, 0);
shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Text.Value.Add(new Txt(@“Hexagon text.”));
// Save the new diagram
diagram.Save(dataDir + “CreatingDiagramWithAspose_out.vdx”, SaveFileFormat.VDX);
// ExEnd:CreatingDiagramWithAspose
loadDiagram(dataDir, “CreatingDiagramWithAspose_out.vdx”);
But in the result the shapes are in the same position.
I Attach the code (visual studio 2015) and the result.
Thanks!!!