DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting a curve of a graph

Hello everyone,
 
I have problems deleting a curve of a graph report in Diadem 8.1, anyone knows ha does it work???
 
I tryed a lot of scripts
 
Call GraphObjDestroy("2DObj5_Curve2")
 
also this one.
 
Call GraphObjOpen("2DAxis5")
'------------------- Curve list -------------------------------
  Call GraphObjOpen("2DObj5_Curve3")
    D2CChnXName =""
    D2CChnYName =""
  Call GraphObjclose("2DObj5_Curve3")
 
Call GraphObjClose("2DAxis5")
Call PicUpdate() 'Updates the report
 
But anything caues the effect that I have expected, that is delete a specific curve.
 
Thanks in advance.
0 Kudos
Message 1 of 3
(3,616 Views)
In older version it seems not to work:
Try this:
Call GraphObjOpen("2DAxis5")
'------------------- Curve list -------------------------------
  Call GraphObjOpen("2DObj5_Curve3")
    D2CChnXName =0
    D2CChnYName =0
  Call GraphObjclose("2DObj5_Curve3")
 
Call GraphObjClose("2DAxis5")
Call PicUpdate() 'Updates the report
 
I hope that works
 
Winfried
0 Kudos
Message 2 of 3
(3,611 Views)

I thyed the last script and also it doesn't work.

The only way is the following script

Call GRAPHObjOpen("2DAxis5")
  Call GRAPHObjOpen("2DObj5_Curve2")
    D2CCHNX          ="Timer_1"
    D2CCHNY          ="Vhc_spd"
    D2CCHNY1         =0
    D2CCONSTX        =NOVALUE
    D2CCONSTY        =NOVALUE
    D2CAXISPAIRNO    =2
    D2CCURVETYPE     ="Line"


    D2CURVECOLOR     ="" 

    D2CURVECOLORRGB  =33554432
    D2CURVESPECCOLOR ="red"
    D2CURVESPECCORGB =33554687
    D2LEGDRAW        =0
    D2LEGPDRAW       =0
    D2USECOMMONXCHN  =0
  Call GRAPHObjClose("2DObj5_Curve2")
Call GRAPHObjClose("2DAxis5")

call picupdate()

But it isn't very good, because I'm only hideing the line.

Do you have a real delete for the curve??

Thanks for your atencion.

0 Kudos
Message 3 of 3
(3,596 Views)