component mass

Hi,

Can any body help in finding the component mass

general procedure is tools --> masscalc --> select component and click on masscalc, how to find the same using command line.

and how to get the NSM for the same component ,

i am working with nastran userprofile

usually we can use 'hm_getentityvalue comps compid '\$PSHELL_NSM' 0 -byid '

This was working fine in hm8 and not working in hm9 can any body help me in finding the both mass and NSM values using command.

Regards

Ramu B

Find more posts tagged with

Sort by:
1 - 1 of 11

    To get the NSM value, you use a similar command, but need to look at the property, not the component in HM9

    'hm_getentityvalue props propid '\$PSHELL_NSM' 0 -byid '

    To get the component mass, you could try using the HyperWorks Automation Toolkit function

    ::hwat::utils::GetMassCG

    but this requires an assembly name as input. I haven't tried this one to see if it works.

    Alternatively, you can review the masscalc file and just borrow the code that computes the part mass by adding up each element mass.

    Eric