aspose-free-consulting / projects

The starting point for Aspose free consulting projects
5 stars 5 forks source link

Aspose.Diagram for .NET: The formulas are not always applied #363

Closed KormosZoli closed 5 months ago

KormosZoli commented 5 months ago

The formulas are not always applied. In the code below, I change the pin location of a shape. When I open the diagram, the pin location is not applied, but the shape sheet contains the right data. After I update the shape sheet data manually(however, I do not change anything there), the shape is displayed properly. What am I missing here ?

long shapeId = page.DrawRectangle(0, 0, 1, 2); Shape shape = page.Shapes.GetShape(shapeId); shape.XForm.PinX.Ufe.F = "GUARD(0)"; shape.XForm.PinY.Ufe.F = "GUARD(0)"; shape.XForm.LocPinX.Ufe.F = "GUARD(0)"; shape.XForm.LocPinY.Ufe.F = "GUARD(0)";