Auto layot does not work properly when there are group shapes.
Open the attached file
a12.zip (19,8 kB) and move one of the parent shapes. The group member shapes are diplayed properly.
Execute the next code with the original attached file.
Diagram diagram = new Diagram(fileName);
LayoutOptions flowChartOptions = new LayoutOptions();
flowChartOptions.LayoutStyle = LayoutStyle.FlowChart;
flowChartOptions.SpaceShapes = 1f;
flowChartOptions.EnlargePage = false;
flowChartOptions.Direction = LayoutDirection.LeftToRight;
diagram.Layout(flowChartOptions);
diagram.Save(fileName, SaveFileFormat.Vsdx);
Open the changed file and you will see that some member shapes are not displayed anymore inside the parent group shapes.(the PinX and PinY values are corrupted).