hfss中VBS求助
05-08
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
我在画波导缝隙的时候用到上面一段语句,x(n,1)、y(n,1)是采用二维数组定义的坐标值,我运行的时候hfss提示“‘mm’ is not a defined variable name in this context”
请问这个具体是怎么回事啊?红色字体的地方使用有问题吗?
mm变量没有定义啊,“”在CST中表示为字符串,(CST的脚本语言为VBA,HFSS我还没怎么用过),你在查找下看看,若mm是变量,就要先定义哈,双引号的问题 你在看看。看别人的程序比自己写还要困难了。
你们是否遇到过这样的情况。在加两个Floquent端口,运行脚本文件会出现服务器出现异常情况,不知道是什么原因,希望高手指点迷津
相关文章:
- HFSS功能的详细叙述(05-08)
- HFSS收敛(Convergence)问题(05-08)
- HFSS的在当今世界的广泛应用及其日益发展的巨大潜力(05-08)
- HFSS V9.2的帮助文件部分翻译(05-08)
- HFSS软件简单介绍(05-08)
- HFSS和Q3D的区别(05-08)
射频专业培训教程推荐