Any API to distinguish between Hyperworks X and Hyperworks classic version?

Ajay Prabhakaran
Ajay Prabhakaran Altair Community Member
edited June 5 in Community Q&A

Hello all,

I have two scripts (Script 1 and Script 2) that need to be executed specifically in HyperWorks X version and HyperWorks Classic version. Script 1 should be executed only in the Classic version, while Script 2 should be executed only in the X version. We can automatically execute the scripts by adding them to hmcustom.tcl. However, I’m not sure which version (Classic or X) the user will open. Is there an API available to determine which version of HyperWorks the user has opened?

Best Answer

  • Michal Stefuca_21473
    Michal Stefuca_21473
    Altair Employee
    edited June 5 Answer ✓

    Hi Ajay,

    You can use

    ::hw::IsUnityFramework

    Thanks,
    Michal

Answers

  • Michal Stefuca_21473
    Michal Stefuca_21473
    Altair Employee
    edited June 5 Answer ✓

    Hi Ajay,

    You can use

    ::hw::IsUnityFramework

    Thanks,
    Michal

  • Ajay Prabhakaran
    Ajay Prabhakaran Altair Community Member
    edited June 5

    Hi Ajay,

    You can use

    ::hw::IsUnityFramework

    Thanks,
    Michal

    Hello Michal,

    A big thank you..... as it solves our major issue.