::hwat::utils::GetMassCG command

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

Dear,

Please explain this command to get mass CG of given assembly.

We have tried with all possible tweaks of tcl syntax but no success.

Following lines tried,

package require hwat;

1. ::hwat::utils::GetMassCG 'C:\Altair\hw8.0sr1\templates\summary\abaqus\ctr_of_gravity' 'D:\CGMassFiles' 'assemname';

2. ::hwat::utils::GetMassCG 'C:\\Altair\\hw8.0sr1\\templates\\summary\\abaqus\\ctr_of_gravity' 'D:\\CGMassFiles' 'assemname';

3. ::hwat::utils::GetMassCG 'C:/Altair/hw8.0sr1/templates/summary/abaqus/ctr_of_gravity' 'D:/CGMassFiles' 'assemname';

4. ::hwat::utils::GetMassCG 'C:\Altair\hw8.0sr1\templates\summary\abaqus\ctr_of_gravity' 'D:\CGMassFiles\' 'assemname';

5. ::hwat::utils::GetMassCG 'C:/Altair/hw8.0sr1/templates/summary/abaqus/ctr_of_gravity' 'D:/CGMassFiles/' 'assemname';

Note that given assembly have defined density and material. To ensure this I pushed 'Summary Panel' in post main panel and shows what should show exactly.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2008

    Please explain what you want to achieve.

    I used:

    *unmaskall()*createmark(elements,1) 'by set name' 'mySet' *createmark(elements,1) 'reverse' *maskentitymark(elements,1,0)*summary('./ctr_of_gravity','output.txt',0,0)
    in a command file once - maybe you could use this?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2008

    Thanks for this works