We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
エレクトロニクス全般

エレクトロニクス全般

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