DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Change z-name by Script

Hi,
how can i change change z-name by script?
 
 
My Script looks like this.

 Call GraphObjOpen("3DAxis1")
    D3PlaneBackColor(1)   = "other colors"     'xy-plane
    D3PlaneBackRGB(1)     = RGB(255,255,128)
    D3PlaneBackColor(2)   = "other colors"     'yz-plane
    D3PlaneBackRGB(2)     = RGB(255,255,200)
    D3PlaneBackColor(3)   = "other colors"     'xz-plane
    D3PlaneBackRGB(3)     = RGB(255,255,200)
    'msgbox D3ChnZ
Call GraphObjClose("3DAxis1")

But how can i edit z-Matrix in my script?

By reading the manual i'm not sure, which variable i have to use. But i think it's "D3ChnZ", my Problem is how?

thx for Help

Stefan

 

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

Hello Stefan,

What do you mean by z-name? Do you mean the label which describes the z-axis?

Then you should replace your msgbox statement with:

D3AxisTxt(3) = "yourLabel [your unit]"

HTH, regards

Patrick

0 Kudos
Message 2 of 4
(3,728 Views)

Hello Patrick,

No that is not the Problem.

If you right click on your 3D-Graphic, than properties (in German "Eigenschaften") you can select channels for each Axis and i have to change the z-Matrix (Channellist) within a script.

thx

StefanF

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

OK, here is the statement to define your channels:

Call GraphObjOpen("3DAxis1")
  Call GraphObjOpen("3DObj1_Curve1")
    D3ChnX(1) = CNo(XChn)
    D3ChnY(1) = CNo(YChn)
    for i = 1 to NoZChn
      ZChni = i + ZChnStart - 1
      D3ChnZ(i) = ZChni  'set Matrix of Z-Channel
    next
  Call GraphObjClose("3DObj1_Curve1")
Call GraphObjClose("3DAxis1")

Regards
Patrick

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