DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

script diadem to remove one curve in report object

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

0 Kudos
Message 1 of 3
(4,187 Views)

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

Message 2 of 3
(4,184 Views)

Hi  Winfried,

 

Thank you for your fast response ! I've tested and it works !

Thanks a lot !

see you !

0 Kudos
Message 3 of 3
(4,179 Views)