01-15-2009 04:44 AM
Hi !
My question : How to remove one curve in 2DAxis report object using Diadem script.
I tried the following syntaxes but it doesn't work :ReportObj.remove(D2CurveObj(iCurveNo)) " Error message : REPORTOBJ=??? invalid vector or matrix index
ReportObj(iObjNo).remove(D2CurveObj(iCurveNo)) " Error message : Requested Object '[string: "2DAxis&"]'
Thank you in advance for your help !
Andre Rako
01-15-2009 05:14 AM
Hi Andre
To delete all curves use the command GraphobjChnClear (Available sind DIAdem 11?).
To delete a curve you have to assign an empty string to the x and y value:
Call GraphObjNew("2D-Axis","2DAxis1")
Call GraphObjOpen("testcurve")
D2CCHNXNAME =""
D2CCHNYNAME =""
Call GraphObjClose("testcurve")
Call GraphObjClose("2DAxis1")
See also: Delete a curve in a report with GraphObjDelete?
Hope this helps
Winfried
01-15-2009 06:51 AM
Hi Winfried,
Thank you for your fast response ! I've tested and it works !
Thanks a lot !
see you !