Hi, I try to set the diagram to use metrics, I do:
Diagram diagram = new Diagram();
diagram.setMetric(1);
/…/
But it doesn’t do anything and in Page Properties I’m still getting measurement units: inches.
Hi, I try to set the diagram to use metrics, I do:
Diagram diagram = new Diagram();
diagram.setMetric(1);
/…/
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;