Broken shapes grouping in Visio document after simple Open/Save document

Hi Support,

Current Aspose.Diagram v.25.11.0 contains issues that break shapes grouping after a simple Open/Save diagram.
I believe this was broken by a fix to the following issue:

Steps to reproduce:

  1. Diagram example is attached

  2. Use following code:
    License license = new License();
    license.SetLicense(“Aspose.Diagram.NET.lic”);
    var diagramName = “Corrupted shapes grouping.vsdx”;

         var document = new Diagram(diagramName);
         document.Save(diagramName, SaveFileFormat.Vsdx);
    
  3. Open modified document. Try to resize shapes manually.

Actual result: shapes have a broken group structure after resize
Expeceted result: shapes have correct grouping structure
**
Corrupted shapes grouping.zip (467.7 KB)

** shapes have correct grouping

Can you please take a look and introduce both issues fixes in one version?

Thanks in advance,
Oleg!

@Oleg_Sh

Summary
You have encountered a regression in Aspose.Diagram v25.11.0 where opening a Visio (.vsdx) file and saving it again corrupts the grouping hierarchy of the shapes. After the file is reopened in Microsoft Visio, resizing a shape that belongs to a group breaks the group relationship.

Why it happens
The issue appears after the fix for the “invalid shape Height/Width/LocPinX/LocPinY” problem (see the forum thread you linked). The exact internal cause has not been published by Aspose, but the behaviour indicates that the recent changes affect how group‑section data is written for certain shapes, leading to loss of the parent‑child links when Visio recalculates geometry.

What to do next

  1. Confirm the regression – Test the same file with the previous stable release (e.g., v25.10.x). If the grouping remains intact, the problem is isolated to v25.11.0.
  2. Report the bug – Open a support ticket with Aspose, attach the original VSDX, the VSDX produced by v25.11.0, and a short description of the steps to reproduce (the code you posted). Mention that the issue surfaced after the fix for invalid geometry cells.
  3. Temporary workaround – Until a fix is released, you can use an earlier version of the library (v25.10.x) for the open‑save operation, or convert the file through an intermediate format (e.g., VDX → VSDX) if that preserves grouping in your tests.
  4. Monitor releases – Keep an eye on Aspose.Diagram release notes for a fix related to grouping after open/save. Apply the updated version as soon as it becomes available.

If you need further assistance or a more detailed analysis of the VSDX package, feel free to share the extracted XML files, and we can help you compare the <Section name="Group"> elements.

Note: The above guidance is based on the information you provided. Specific internal details of the regression have not been confirmed by Aspose documentation.

SDK version unclear — refer to the official release notes before applying this guidance.

@Oleg_Sh
Thanks for the template files.
The ZIP file contains two documents: “[Original]Corrupted shapes grouping” and “Corrupted shapes grouping”.

We first tested the “[Original]Corrupted shapes grouping” file .
In the generated file, we manually dragged the two group shapes—shape237 and shape190—and both could be resized normally.

In the code, you used “var diagramName = “Corrupted shapes grouping.vsdx”; ”,
so we opened the “Corrupted shapes grouping.vsdx” file and saved it.
Also obtained normal results.

Please refer to the two output files using 25.11 of net4.0 in the attachment and the screenshots of dragging the two shapes.
outputfiles.zip (532.3 KB)

It appears that “Corrupted shapes grouping.vsdx” is the file after saving . When we dragged the two shapes, the results we obtained were different from this file. We might have made a mistake somewhere. Please provide the original file after saving but before any shapes were dragged.
Thank you for your patience and understanding.

Hi Philip,

Let’s refer to a shape id 237 as an example.
Here is original properly resized shape without any issues:
image.png (12.9 KB)

After diagram is Open and Saved with Aspose. Shape after resizing has a broken structure:
image.png (13.4 KB)

@Oleg_Sh
Thanks for the screenshots.
I am able to reproduce the issue as you mentioned.
We are sorry for the inconvenience.We will fix both issues in next version.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMNET-53845

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.