DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Script to change the linestyle in a report graph

Solved!
Go to solution

Hi all,

 

Is there a way to automate the formating of (linestyle) of a graph plot in a report?

 

grtz,

 

Ben

0 Kudos
Message 1 of 2
(4,066 Views)
Solution
Accepted by Ben_Engelen

This code will access the line style in an axis system:

 

Call GraphObjOpen("2D-Axis1")
  Call GraphObjOpen("2D-Axis1_Curve1")
    D2CurveLineType  = "solid"
  Call GraphObjClose("2D-Axis1_Curve1")
Call GraphObjClose("2D-Axis1")

 

Please note that you need to know the name of the Axis system and the Curve you wish to change and use the correct names in the GraphObj... commands.

 

The best way to find these commands is through the Ctrl-A function in DIAdem.

 

Valid entries for D2CurveLineType are:

 

Script Term Interface Term, Explanation
solid
Line
dash&dott.
Dots and dashes
dashed 1
Dashes 1
dashed 2
Dashes 2
dotted
Dotted

 

I hope this helps,

 

     Otmar

   
   
   
   
   
   
Otmar D. Foehner
Message 2 of 2
(4,058 Views)