07-10-2012 04:42 AM
Hi everyone,
In DIAdem script I'm trying to set the scaling of the Y axis completely automatically, and I want to take the values found automatically in one row and have them be the scale of another row.
I want to leave the scaling type (D2AxisYScaleType) as: "complete automatic", is there a way to extract the scaling (end and begin) found automatically on a certain row in the report (say row number 1) and use it as the scaling of another row (say row 3)?
07-10-2012 09:25 AM
Hi nkm10,
try following:
Dim xBegin, xEnd, xSpan 'First 2D-Axis System Call GraphObjOpen("2DAxis1") Call GraphObjOpen("2DAxis1_XAxis1") xBegin = D2AxisXBegin xEnd = D2AxisXEnd xSpan = D2AxisXSpanWidth Call GraphObjClose("2DAxis1_XAxis1") Call GraphObjClose("2DAxis1") ' Second 2D-Axis System Call GraphObjOpen("2DAxis2") Call GraphObjOpen("2DAxis2_XAxis1") D2AxisXDivMode = "linear" D2AxisXScaleType = "begin/end manual" D2AxisXBegin = xBegin D2AxisXEnd = xEnd D2AxisXSpanWidth = xSpan Call GraphObjClose("2DAxis2_XAxis1") Call GraphObjClose("2DAxis2")
It was working fine for me. So you read the data from one axis-system where you want to geht the data from and set the second one according to that.
I hope this helps,
RMathews