求助,VBScript脚本编写的HFSS建模出现错误
05-08
我在编写VBScript时出现错误 提示800A0408 说是无效字符
前面代码如下
Dim oAnsoftApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
Set oAnsoftApp = CreateObject("AnsoftHfss.HfssScriptInterface")
Set oDesktop = oAnsoftApp.GetAppDesktop()
oDesktop.RestoreWindow
oDesktop.NewProject
Set oProject = oDesktop.GetActiveProject
oProject.InsertDesign"HFSS","HFSSmodel1","DrivenModal",""
Set oDesign = oProject.GetActiveDesign()
Set oEditor = oDesign.SetActiveEditor("3D Modeler")
请帮我看看哪里不对?谢谢大家了
前面代码如下
Dim oAnsoftApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
Set oAnsoftApp = CreateObject("AnsoftHfss.HfssScriptInterface")
Set oDesktop = oAnsoftApp.GetAppDesktop()
oDesktop.RestoreWindow
oDesktop.NewProject
Set oProject = oDesktop.GetActiveProject
oProject.InsertDesign"HFSS","HFSSmodel1","DrivenModal",""
Set oDesign = oProject.GetActiveDesign()
Set oEditor = oDesign.SetActiveEditor("3D Modeler")
请帮我看看哪里不对?谢谢大家了
如果你是用record Script产生的vbScript文件,就可以理解为什么报错了!在程序的最前端有隐藏的无效字符。把隐藏的字符去掉就OK了。
哦 我再去看看 谢谢你啊
请问你解决了吗?我也遇到这样的问题!120757837,请求指点
相关文章:
- 請教大家:LPDA天線如何建模,又怎么同時給每個對稱振子饋電呢?(05-08)
- 菜鸟第一问:请各位大虾推荐下天线建模的相关书籍!(05-08)
- 带空气层的微带天线HFSS建模问题(05-08)
- 双脊喇叭建模(05-08)
- 分形天线实例建模(HFSS) (05-08)
- 发射/接收天线的建模仿真 (05-08)
天线设计培训教程推荐