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

Free Support Forum - aspose.com


Hi, I try to set the diagram to use metrics, I do:
Diagram diagram = new Diagram();

But it doesn’t do anything and in Page Properties I’m still getting measurement units: inches.


Could you please share a bit more details like sample source and generated output files for our reference? We will further proceed to assist you accordingly.


Setting metrics has no effect on the interface.

Please try this sample code to set the unit to mm or others.

Page srcPage = diagram.Pages[0];
srcPage.PageSheet.PageProps.PageScale.Value = 0.03937007874015748;
srcPage.PageSheet.PageProps.PageScale.Ufe.Unit = MeasureConst.MM;
srcPage.PageSheet.PageProps.DrawingScale.Value = 0.03937007874015748;
srcPage.PageSheet.PageProps.DrawingScale.Ufe.Unit = MeasureConst.MM;