xwolan00
Newbie level 3
- Joined
- Mar 1, 2010
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Brno University of Technology
- Activity points
- 1,305
Hi everybody, I have problem. I am trying to get x a y values from Mix0D results in CST Design Studio by using macro. I can easily get x values. But I have a problem to get y values. Here is the code
Set res = CreateObject("CSTStudio.DSTable")
res.Load("path to Mix0D.tab")
With objName
iV = .GetVaryingParameter
nData = .GetNumberOfDataItems
k = .GetParameterNameFromIndex(iV)
For iData=0 To nData-1
sarray(iData) = sarray(iData) + CStr(.GetParameterValueOfDataItem(iData,iV))
varray(iData) = CStr(.Get0DDataItem(iData)) 'here is error, "unknown" data type instead of "0D real"
Next iData
End With
Please, can anybody help me?
Set res = CreateObject("CSTStudio.DSTable")
res.Load("path to Mix0D.tab")
With objName
iV = .GetVaryingParameter
nData = .GetNumberOfDataItems
k = .GetParameterNameFromIndex(iV)
For iData=0 To nData-1
sarray(iData) = sarray(iData) + CStr(.GetParameterValueOfDataItem(iData,iV))
varray(iData) = CStr(.Get0DDataItem(iData)) 'here is error, "unknown" data type instead of "0D real"
Next iData
End With
Please, can anybody help me?