We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
エレクトロニクス全般

エレクトロニクス全般

Script:境界条件の設定名の取得 (GetBoundaries, GetBoundariesOfType)

    • FAQFAQ
      Participant

      HFSS Design で境界条件の設定名をスクリプトで取得することが可能です。 使用するコマンド ・ 全境界条件の設定名とタイプ名を取得する:GetBoundaries() ・ 境界条件のタイプを指定して設定名を取得する:GetBoundariesOfType(<BoundaryType>) まず、設定されている全ての境界条件の設定名とタイプ名を取得して MessageBox で表示し、 次に、Lumped RLC タイプの境界条件の設定名を取得して MessageBox で表示する VBS のサンプルコードを下記に示します。 <注意>本サンプルコードは、全ての動作を保証するものではありません。 ——————————————————————– Set oAnsoftApp = CreateObject(“Ansoft.ElectronicsDesktop”) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() Set oModule = oDesign.GetModule(“BoundarySetup”) boundary_array = oModule.GetBoundaries() for i=0 to ubound(boundary_array) msgbox boundary_array(i) next rlc_array = oModule.GetBoundariesOfType(“Lumped RLC”) for i=0 to ubound(rlc_array) msgbox rlc_array(i) next ——————————————————————– キーワード: Script, スクリプト, VBS, IronPython, GetBoundaries, GetBoundariesOfType