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:Q3D での Setup 名の取得 (GetSetups)

    • FAQFAQ
      Participant

      Q3D で Setup 名をスクリプトで取得することが可能です。 使用するコマンド ・Setup 名を取得する:GetSetups() 選択中の Q3D デザインで Setup 名を取得して Message Manager に表示する IronPython のサンプルコードを下記に示します。 <注意>Q3D は GetSetupCount には対応していません。 <注意>本サンプルコードは、全ての動作を保証するものではありません。 ‘——————————————————————– import ScriptEnv ScriptEnv.Initialize(“Ansoft.ElectronicsDesktop”) oDesktop.RestoreWindow() oProject = oDesktop.GetActiveProject() oDesign = oProject.GetActiveDesign() oModule = oDesign.GetModule(“AnalysisSetup”) setup_names = oModule.GetSetups() for setup in setup_names : AddInfoMessage(setup) ‘——————————————————————– キーワード: Script, スクリプト, VBS, IronPython, GetSetups