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

Free Support Forum - aspose.com

LocPinX and LocPinY - contain wrong values

Hi Support,

LocPinX and LocPinY of TwoD shapes contain wrong values in some cases. Value returned is a MinValue of “Double” data type. I’ve attached the diagram that will help you to reproduce the issue.
Code sample:

    static void Main(string[] args)
        var asposeDiagram = new Diagram("LocPinIssueDrawing.vsdx", LoadFileFormat.VSDX);

        foreach (Shape shapeItem in asposeDiagram.Pages[0].Shapes)
            Console.WriteLine("Shape ID: " + shapeItem.ID);
            Console.WriteLine("LocPinX: " + shapeItem.XForm.LocPinX.Value);
            Console.WriteLine("LocPinY: " + shapeItem.XForm.LocPinY.Value);


Note : if you will manually resize the shapes, issue will not be reproduced.
It can be reproduced, if shape is dropped on a canvas and is not manually resized

LocPinIssueDrawing.zip (71.9 KB)


We have logged an investigation ticket as DIAGRAMNET-51734 in our issue tracking system for the sake of further investigation. We will look into details of the issue and keep you posted with the status of ticket resolution. Please spare us little time.

We are sorry for the inconvenience.