官方淘宝店 易迪拓培训 旧站入口
首页 > 仿真设计 > HFSS仿真设计论坛 > HFSS脚本程序出错

HFSS脚本程序出错

05-08
在记事本中编写HFSS13.0脚本程序,然后将程序保存为.vbs格式后,在HFSS中点击run script总是运行不了,第二行总是会报错,出错程序如下红色字体:
Set oEditor=oDesign.SetActiveEditor("3D Modeler")
oEditor.CreateBox Array("NAME:BoxParameters","CoordinateSystemID:=",-1,
"XPosition:=","-20.5mm","YPosition:=","-20.5mm","ZPosition=:","0mm",                    
"XSize:=","20mm","YSize:=","20mm","ZSize:=","80mm"),
Array("NAME:Attributes","Name:=","Box1","Flags:=","","Color:=","(132 132 193)"
"Transparency:=",0.8,"PartCoordinateSystem:=","Global","MaterialName:=",
"vaccum","SolveInside:=",true)



求各位大神解答,在线等,很急!

坐标系ID改为1试试。

你这是用HFSS自动记录的还是你个人自己写的?一般一句代码还没完的情况下,要加个" _ "才能另起一行。你不妨用HFSS自动记录下脚本,用记事本打开看看有什么不同。

您好!请问您的问题解决了么?我也遇到了相同的问题,即使是录制的脚本也出错,现在一筹莫展啊,这方面的资料也奇缺,如果可以的话,能否给些指导哟!不胜感激涕零

Top