Accessing hm and hm.entities externally

Ryan Holland
Ryan Holland Altair Community Member
edited September 6 in Community Q&A

Is there a way to access the Python hm and hm.entities modules outside of the in-built Python console? When working in VSCode "hm" appears to reference a different module (not related to hypermesh) and "hm.entities" is entirely unavailable. I'm working on a script that pushes and extracts data from a .hm database without it being open, but not having access to these modules has stopped me from proceeding.

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited September 6

    i'm pretty sure the only way you have to "push and extract" data from an .hm file is to open the model in HM and use its TCL/python APIs. Couldn't you just launch HM in batch mode and provide a python script for that?