How to call Workbench ACT Project page functions in Mechanical ACT?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

How to call Workbench ACT WB Project page functions in Mechanical ACT?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    It can be done using ExecuteCommand() and the returned values can be requested using returnValue

    Example:

    import wbjn
    wbjn.ExecuteCommand(ExtAPI, "returnValue(GetUserFilesDirectory())")