We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Shape grouping issues

There are some shapes grouping issues. Attached example contains 3 tests in AsposeTest class , one for each issue:

1) multipleGroupsTest - throws exception with message “com.aspose.diagram.DiagramException: Please ungroup the shape before grouping shapes” while creating second group on the page
2) groupDisappearsTest - shapes in group became invisible
3) invalidConnectorMasterTest - throws exception with message “com.aspose.diagram.DiagramException: Shape DataRow.51 with ID {1} is not a Dynamic connector” while connecting shapes with connector(“Dynamic connector” master is used) after adding shape groups on page
Attached example works with Aspose Diagram version 16.10.0 , but 16.10.1 has the same issues.

Hi Dmitry,


Thank you for contacting support. We managed to replicate the said problem on our side as below:

DIAGRAMJAVA-50438: Can’t group shapes second time in a Visio Drawing page
DIAGRAMJAVA-50439: The group shape becomes invisible on adding circular shapes in a VSDM
DIAGRAMJAVA-50440: Page.AddShape method shows an invalid error on adding a dynamic connector

Your post has also been linked to these tickets. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience.

Hi Dmitry,

Thank you for being patient. We have a good news for you that the ticket IDs DIAGRAMJAVA-50438, DIAGRAMJAVA-50439 and DIAGRAMJAVA-50440 have now been resolved. If there is no issue in the QA phase, then their fixes will be included in the next version 16.12.0 of Aspose.Diagram for Java API. We'll inform you via this forum thread as soon as the new release is published.

Hi Dmitry,


Thank you for being patient. In reference to the ticket IDs DIAGRAMJAVA-50438, DIAGRAMJAVA-50439 and DIAGRAMJAVA-50440, please download and use the latest Hotfix version: Aspose.Diagram for Java 16.11.1. Please also let us know how that goes on your side.

There is still few issues.

1) created groupped shape has incorrect resizing behaviour. While resing shape manually by pulling shape corner with mouse, only border change size, but not whole shape. (see after_resizing.PNG)
2) after resining shape connected with Dynamic Connector(which was created with ConnectionPointPlace.CENTER) changes it connection position(connects not to center, but to corner of the shape). Same issue has groupped shapes created from master.
Tested with Aspose.Diagram 16.11.2 . Screenshots and example to reproduce is attached

Hi Dmitry,


Thank you for the details.
1) created groupped shape has incorrect resizing behaviour. While resing shape manually by pulling shape corner with mouse, only border change size, but not whole shape. (see after_resizing.PNG)
We managed to replicate the said issue. It has been logged under ticket ID DIAGRAMJAVA-50451 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.
2) after resining shape connected with Dynamic Connector(which was created with ConnectionPointPlace.CENTER) changes it connection position(connects not to center, but to corner of the shape). Same issue has groupped shapes created from master.
We could not replicate the problem of change in the connection position. After changing the position shapes, the dynamic connector remains sticky with a center point. Please let us know which version of the Microsoft Visio application are you using? We’ll investigate and reply you appropriately.

Hi Dmitry,

Thank you for being patient. We have a good news for you that the ticket ID DIAGRAMJAVA-50451 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version 16.12.0 of Aspose.Diagram for Java API. We'll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMJAVA-50438;DIAGRAMJAVA-50439;DIAGRAMJAVA-50440;DIAGRAMJAVA-50451) have been fixed in Aspose.Diagram for Java 16.12.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.