求助:HFSS中VBS的问题
时间:10-02
整理:3721RD
点击:
我想写个VBS文件,然后导入HFSS,但导入时出现错误.
我写的文件就是画个平面,如下
oEditor.CreateBox
Array("NAME:BoxParameters", "Xposition:=", "0mm", "Yposition:=", "0mm", "Zposition:=",_"4.000mm", "Xsize:=", "49.000mm", "Ysize:=", "49.000mm", "Zsize:=", "0.2mm"), _
Array("NAME:Attributes", "Name:=", "patch","Flags:=", "" , "Color:=", "(180255200)", "Transparency:=", 0.1, "PartCoordinateSystem:=","Global","MaterialName:=", "perfect conductor", "SolveInside:=",false)
运行时出现错误,我是直接用记事本写的程序,然后把后缀改为vbs
附件里面是错误的截图
我写的文件就是画个平面,如下
oEditor.CreateBox
Array("NAME:BoxParameters", "Xposition:=", "0mm", "Yposition:=", "0mm", "Zposition:=",_"4.000mm", "Xsize:=", "49.000mm", "Ysize:=", "49.000mm", "Zsize:=", "0.2mm"), _
Array("NAME:Attributes", "Name:=", "patch","Flags:=", "" , "Color:=", "(180255200)", "Transparency:=", 0.1, "PartCoordinateSystem:=","Global","MaterialName:=", "perfect conductor", "SolveInside:=",false)
运行时出现错误,我是直接用记事本写的程序,然后把后缀改为vbs
附件里面是错误的截图
回去再把VBS好好看看吧
就这两句?
前面的初始化呢?
是啊,没有初始化的语句啊。你可以用hfss的录制功能录一个脚本看一下前面的初始化语句,不过要在没打开hfss的情况下运行,那些语句还要修改