Command for choosing Units Profiles

Toan_Nguyen_9509
Toan_Nguyen_9509 New Altair Community Member
edited September 2021 in Community Q&A

Hi,

I am working on a TCL script for HyperGraph. Every went smoothly until I reach the last steps and Hypergraph keeps asking me to choose the units for my plot before it can execute next commands in scripts. I cannot find any command relate to this Unit Profilese selection in HyperGraph objects. Could anyone please help?

image

Answers

  • Michael Herve
    Michael Herve
    Altair Employee
    edited September 2021

    Hello Toan,

     

    this can be done with SetUnitSystemBinding and SetUnitSystem commands. Preliminary, you have to define a Data File handle:

     

    MySession GetDataFileHandle MyFileData A:/MyFiles/MYOutputFile.abf

    MyFileData SetUnitSystemBinding (can be also reader or solver)

    MyFileData SetUnitSystem “m s Kg rad”

     

    Best Regards,

    Michael