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);
}
Console.ReadLine();
}
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)