How to extract center of gravity using TCL script?

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi All,

I wanna get the center of gravity information of one model using TCL script, but I found that the only way provided in Hypermesh is Summary function and the result is presented with text format, no direct returned data can be obtained.

So, I want to know how to extract this data just using TCL script, in other words, If I click one button 'Get COG', the coordinates is listed. How to get that? Are there any functinons can be called directly?

Thanks a lot.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2010

    Every entity has a c.o.g., but this would take too long to run in TCL. The summary export template is much faster. I suggest making a script that exports the summary template and simply parse the file.