|
電腦中安裝了多個版本的HFSS,做二次開發(fā)的時候應(yīng)該怎么設(shè)置代碼實現(xiàn)啟動指定版本對的HFSS,下面這個代碼回默認打開最新版本的HFSS
Try
oAnsoftApp = GetObject(, "Ansoft.ElectronicsDesktop")
Catch ex As Exception
TSL1.Text = ">>>Ansoft.HFSS啟動中。。。。"
oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")
End Try |
|