求助会用vbs的高手们
05-08
我在画波导缝隙的时候用到下面一段语句,x(n,1)、y(n,1)是采用二维数组定义的坐标值,我运行的时候hfss提示“‘mm’is not a defined variable name in this context”
请问这个具体是怎么回事啊?红色字体的地方使用有问题吗?
For n = 0 To 4
oEditor.CreatePolyline Array("NAME:PolylineParameters", "CoordinateSystemID:=", -1, "IsPolylineCovered:=", _
true, "IsPolylineClosed:=", true, Array("NAME:PolylinePoints", Array("NAME:PLPoint", "X:=", _
CStr(x(n,1))&"mm", "Y:=", CStr(y(n,1))&"mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", CStr(x(n,2))&"mm", "Y:=", _
CStr(y(n,2))&"mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", CStr(x(n,3))&"mm", "Y:=", CStr(y(n,3))&"mm", "Z:=", _
"0mm"), Array("NAME:PLPoint", "X:=", CStr(x(n,4))&"mm", "Y:=", CStr(y(n,4))&"mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", _
CStr(x(n,1))&"mm", "Y:=", CStr(y(n,1))&"mm", "Z:=", "0mm")), Array("NAME:PolylineSegments", Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 0, "NoOfPoints:=", 2), Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 1, "NoOfPoints:=", 2), Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 2, "NoOfPoints:=", 2), Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 3, "NoOfPoints:=", 2))), Array("NAME:Attributes", "Name:=", _
"Polyline1", "Flags:=", "", "Color:=", "(132 132 193)", "Transparency:=", 0, "PartCoordinateSystem:=", _
"Global", "MaterialName:=", "vacuum", "SolveInside:=", true)
Next
请问这个具体是怎么回事啊?红色字体的地方使用有问题吗?
For n = 0 To 4
oEditor.CreatePolyline Array("NAME:PolylineParameters", "CoordinateSystemID:=", -1, "IsPolylineCovered:=", _
true, "IsPolylineClosed:=", true, Array("NAME:PolylinePoints", Array("NAME:PLPoint", "X:=", _
CStr(x(n,1))&"mm", "Y:=", CStr(y(n,1))&"mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", CStr(x(n,2))&"mm", "Y:=", _
CStr(y(n,2))&"mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", CStr(x(n,3))&"mm", "Y:=", CStr(y(n,3))&"mm", "Z:=", _
"0mm"), Array("NAME:PLPoint", "X:=", CStr(x(n,4))&"mm", "Y:=", CStr(y(n,4))&"mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", _
CStr(x(n,1))&"mm", "Y:=", CStr(y(n,1))&"mm", "Z:=", "0mm")), Array("NAME:PolylineSegments", Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 0, "NoOfPoints:=", 2), Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 1, "NoOfPoints:=", 2), Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 2, "NoOfPoints:=", 2), Array("NAME:PLSegment", "SegmentType:=", _
"Line", "StartIndex:=", 3, "NoOfPoints:=", 2))), Array("NAME:Attributes", "Name:=", _
"Polyline1", "Flags:=", "", "Color:=", "(132 132 193)", "Transparency:=", 0, "PartCoordinateSystem:=", _
"Global", "MaterialName:=", "vacuum", "SolveInside:=", true)
Next
相关文章:
- 有关VBS的讨论 (05-08)
- 求助:HFSS中VBS的问题 (05-08)
- 有没有VBS高手呀? (05-08)
- 通过hfss-vbs的ExportNetworkData直接得到Y Matrix? (05-08)
- VBS的问题 (05-08)
- 调用VBS的有关问题。 (05-08)
射频专业培训教程推荐