Need to get API to check if the opened software is HM or HV?

Jouher_20819
Jouher_20819 Altair Community Member
edited July 2021 in Community Q&A

I used to change continuously between HM and HV within hyperworks. Some operations are meant to be run in HV whereas others in HM. So, i need the api to check which software is open to handle the errors accordingly

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited July 2021

    hi,  you could check the client type, under the window handle.

    If the window is set to FePre, it is HM. If it is set to Animation, it is HV.

    hwIWindow GetClientType

    Returns the window client type.

    Syntax

    hwIWindow_handle GetClientType

     

    The client type. Choices include: FePreModelAnimationPlotPlot3DTextEditor, and Video.