How to Obtain the return value of "GeometryCheckAndAutofix()" function by non-GUI mode?

lin_ming_chih
lin_ming_chih Member, Employee Posts: 2
Ansys Employee
✭✭✭

Question:

Do you know how to obtain the return value of "GeometryCheckAndAutofix()" function by non-GUI mode(python script)? The execution result of "GeometryCheckAndAutofix()" function is not recorded in the log by non-GUI mode.

Remark

I try to use "oDesktop.GetMessages(project_name, design_name, level=0/1/2/3)" to get the result of GeometryCheckAndAutofix() from message window.
And I clear the old message from window before do geometry check.
It is success to get return value in GUI mode but not work in non-GUI mode (batch mode)

Additional information about this question:

1) HFSS 3D Layout Version: 2021R2 linux

2) Batch command:ansysedt -feature=beta -ng -runscriptandexit xxx.py

3) GeometryCheckAndAutofix() in xxx.py

oEditor.GeometryCheckAndAutofix(
[
"Name:checks",
"DC-Short Errors"
], "minimum_area_meters_squared:=", 2E-06,
[
"Name:fixes"
])

Tagged:

Answers

  • chen_zhou
    chen_zhou Member Posts: 1
    First Comment
    **

    Question:

    Do you know how to obtain the return value of "GeometryCheckAndAutofix()" function by non-GUI mode(python script)? The execution result of "GeometryCheckAndAutofix()" function is not recorded in the log by non-GUI mode.

    Remark

    I try to use "oDesktop.GetMessages(project_name, design_name, level=0/1/2/3)" to get the result of GeometryCheckAndAutofix() from message window.
    And I clear the old message from window before do geometry check.
    It is success to get return value in GUI mode but not work in non-GUI mode (batch mode)

    Additional information about this question:

    1) HFSS 3D Layout Version: 2021R2 linux

    2) Batch command:ansysedt -feature=beta -ng -runscriptandexit xxx.py

    3) GeometryCheckAndAutofix() in xxx.py

    oEditor.GeometryCheckAndAutofix(
    [
    "Name:checks",
    "DC-Short Errors"
    ], "minimum_area_meters_squared:=", 2E-06,
    [
    "Name:fixes"
    ])