DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the scaling in 2D plot in VIEW

Solved!
Go to solution

Hi,

 

Just wondering if you know how to set the scaling (either X-axis and Y-axis) in a 2D plot in VIEW from a script?  Many thanks in advance.

 

Regards,

 

Kane

0 Kudos
Message 1 of 3
(1,139 Views)
Solution
Accepted by topic author Kane_Lok

Hello Kane,

 

per script the Y-axes in VIEW can be scaled manually via the properties YScalingBegin and YScalingEnd. For this to work, manual scaling must be enabled for the axis system. Either this is already set in the layout or you can also set the manual scaling per script via YScalingMode.

 

Dim oDisplayObj
Set oDisplayObj = View.Sheets("Seite 1").Areas("Area : 1").DisplayObj
'------------------- 2DAxisSystem ------------------------------
oDisplayObj.YScalingMode        = "manual"
oDisplayObj.YScalingBegin       = 1000
oDisplayObj.YScalingEnd         = 2000

 

A very useful feature in DIAdem is the generation of script code. In many dialogs of DIAdem the settings of the dialog can be generated as script code. To do this you have to press the keys CTRL + SHIFT + C while the dialog is open. Then you will get code like I have pasted above. The code is on the clipboard and can then be pasted into a script. Have fun with it! :-).

 

Regards

AnJalpaka

0 Kudos
Message 2 of 3
(1,107 Views)

Hi AnJalpaka,

 

It is exactly what I need.  Thanks very much.

 

Regards,

 

Kane

0 Kudos
Message 3 of 3
(1,074 Views)