HyperWorks Tools

::hwat::utils::GetMassCG

::hwat::utils::GetMassCG

Previous topic Next topic No expanding text in this topic  

::hwat::utils::GetMassCG

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::utils::GetMassCG - Finds the mass, cg, and centroids of the given assembly.

 

SYNTAX

::hwat::utils::GetMassCG str_templateFilePath str_outputFilePath assemname

 

ARGUMENTS

str_templateFilePath

The directory location of the template file.

str_outputFilePath

The directory to write the intermediate output file.

assemname

The HWAT assembly name (default = "").

 

RETURNS

A Tcl list of the form mass, xcoordinate of cg, ycoordinate of cg, zcoordinate of cg, xcoordinate of centroid, , ycoordinate of centroid, , zcoordinate of centroid if successful, {} if unsuccessful.

 

EXAMPLE

::hwat::utils::GetMassCG "D:/Altair/templates" "D:/Project/files" "Vehicle".

 

Comments

If no assembly name is given, the values are calculated for the displayed assemblies.

 

See also

Utils Functions