Need to get API to check if the opened software is HM or HV?
Jouher_20819
Altair Community Member
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
0
Answers
-
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: FePre, Model, Animation, Plot, Plot3D, TextEditor, and Video.
1