🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to obtain the area of components

User: "pohan"
Altair Community Member
Updated by pohan

Hi

I Hypermesh, I use Tool/Mass calc to calculate the area of some components but I could not find the command for TCL.

Could you please explain me?

Thanks

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "Imoto"
    Altair Employee
    Updated by Imoto

    Hi

     

    You can use hm_getmass command.

     

    Thanks

    User: "pohan"
    Altair Community Member
    OP
    Updated by pohan

    Hi

     

    You can use hm_getmass command.

     

    Thanks

    Thank you very much. By the way, do you know how to export this result to excel or text file?

    User: "Imoto"
    Altair Employee
    Updated by Imoto

    Yes, please try following lines.

     

    set fn [tk_getSaveFile -defaultextension csv];
    set fh [open $fn w];
    puts $fh 'Mass,Volume,Area';
    *createmark elems 1 displayed;
    lassign [hm_getmass elems 1] mass volume area;
    puts $fh '${mass},${volume},${area}';
    close $fh;
     

    User: "pohan"
    Altair Community Member
    OP
    Updated by pohan

    Thank you.

    I tried this code but the elems could not be selected so I could not get the result. Could you please verify?

    Thanks

    User: "Imoto"
    Altair Employee
    Updated by Imoto

    Pohan,

    It works fine, please attach your model.

     

    Thanks,

    Imoto