HFSS API script fails

Hello,
This script fails on line 3. I serached for this problem and it was suggested to ad a pause between line 2 and 3. tried pause(100) and it did not help. However if I go step by step it does work.
Also if I change oProject.GetActiveDesign(); by oProject.SetActiveDesign("HFSSDesign1"); it does work but that requires the a pripori knowledge of the design name. not sure how to get that.
I contacted Ansys Tech Support, but they doe not support MATLAB API.
Any thought?
Thank you
oProject = invoke(oDesktop,'OpenProject',full_path_name);
oDesktop.SetActiveProject(oProject.GetName())
oDesign = oProject.GetActiveDesign();
oModule = oProject.GetActiveDesign();
oEditor = oDesign.SetActiveEditor('3D Modeler');

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2024a

タグ

質問済み:

2025 年 9 月 17 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by