Thinian
February 15, 2023, 2:57pm
1
With version :
implementation group: ‘com.aspose’, name: ‘aspose-diagram’, version: ‘22.9’
When I run this code :
Thinian:
With version :
implementation group: ‘com.aspose’, name: ‘aspose-diagram’, version: ‘22.9’
When I run this code :
private static void rotateShape(Page visioPage, long shapeId, double angle) throws Exception {
Shape shape = visioPage.getShapes().getShape(shapeId);
DBO(DB_ADD_SHAPE_TRACE, () -> " shape.getXForm().getAngle():" + shape.getXForm().getAngle().getValue());
shape.getXForm().getAngle().setValue(angle);
DBO(DB_ADD_SHAPE_TRACE, () -> " shape.getXForm().getAngle():" + shape.getXForm().getAngle().getValue());
shape.refreshData();
DBO(DB_ADD_SHAPE_TRACE, () -> " shape.getXForm().getAngle():" + shape.getXForm().getAngle().getValue());
shape.bringToFront();
}
It produces:
0: shape.getXForm().getAngle():0.0
0: shape.getXForm().getAngle():3.141592653589793
0: shape.getXForm().getAngle():3.141592653589793
With this version:
implementation group: 'com.aspose', name: 'aspose-diagram', version: '23.2'
It produces:
0: shape.getXForm().getAngle():0.0
0: shape.getXForm().getAngle():3.141592653589793
0: shape.getXForm().getAngle():0.0
And the shape is not rotated.
@Thinian
Would you please also share the sample Diagram for our reference? We will log an investigation ticket in our issue tracking system and share the ID with you.