03-19-2008 06:15 AM
03-19-2008 10:49 AM
Hello Zhiyao!
Assuming you want to analyse the TDR to determine wich channels to load this code will show how to loop through the objects to get the names:
Option Explicit
Dim nPicObj
Dim nCurve
For nPicObj=1 To ReportObjLast
If PicObj(nPicObj) <> "" Then
If PicObjType(nPicObj) = "XY" Then
Call GraphObjOpen(PicObj(nPicObj))
For nCurve=1 To CurveIdentNoMax
If D2CurveObj(nCurve)<>"" Then
MsgBox "X: " & D2ChnXName(nCurve) & vbCRLF & "Y: " & D2ChnYName(nCurve)
End If
Next
Call GraphObjClose(PicObj(nPicObj))
End If
End If
Next
This simple example only work with 2D axis and normal curve type. The code have to be expanded for other object or curve types.
BTW: This is the basic aproach for data loading in our DIAdem application framework X-Frame.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
03-26-2008 03:19 AM
03-26-2008 03:33 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
03-26-2008 04:01 AM
03-26-2008 06:00 AM
Hello Zhiyao!
The scaling is as expected in my DIAdem. Can you please check your version.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
03-26-2008 06:13 AM
03-26-2008 06:17 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |