HFSS中VBS的問題
我想寫個(gè)VBS文件,然后導(dǎo)入HFSS,但導(dǎo)入時(shí)出現(xiàn)錯(cuò)誤.
我寫的文件就是畫個(gè)平面,如下
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)
運(yùn)行時(shí)出現(xiàn)錯(cuò)誤,我是直接用記事本寫的程序,然后把后綴改為vbs
附件里面是錯(cuò)誤的截圖
回去再把VBS好好看看吧
就這兩句?
前面的初始化呢?
是啊,沒有初始化的語句啊。你可以用hfss的錄制功能錄一個(gè)腳本看一下前面的初始化語句,不過要在沒打開hfss的情況下運(yùn)行,那些語句還要修改