NXOpen.UF.Modeling.AskMassProps3d

Modeling.AskMassProps3d()

Refer to UF_MODL_ask_mass_props_3d for documentation.

Signature: AskMassProps3d(objects, numObjs, type, units, density, accuracy, accValue)

Parameters:
  • objects (list of Tag) – num_objsArray of solid or sheet body identifiers, Solid bodies for analysis type 1, Sheet bodies for analysis types 2 and 3
  • numObjs (int) – Number of objects
  • type (int) – Type of 3D Analysis 1 = Solid Bodies 2 = Thin Shell - Sheet Bodies 3 = Bounded by Sheet Bodies
  • units (int) – Units of mass and length 1 = Pounds and inches 2 = Pounds and feet 3 = Grams and centimeters 4 = Kilograms and meters
  • density (float) – Density - Mass per unit volume (Mass per unit area for thin shell). Not used for solid body analysis; for solid bodies the densities of the solid bodies are used in the analysis and the density of the combined set of bodies is output in the mass properties array (mass_props[46]).
  • accuracy (int) – 1 = Use Accuracy 2 = Use Relative Tolerances
  • accValue (list of float) – [0] = Accuracy value between 0.0 and 1.0 if accuracy = 1 [1-10] not used if accuracy = 1 [0] = Relative Tolerance for Area if accuracy = 2 [1] = Relative Tolerance for Volume [2-4] = Relative Tolerances for First Moments (centroidal) [5-7] = Relative Tolerances for Moments of Inertia (centroidal) [8-10]= Relative Tolerances for Products of Inertia (centroidal)
Returns:

A Tuple

Return type:

A tuple consisting of (massProps,statistics)

massProps(list of float): Mass properties [0] = Surface Area [1] = Volume (0.0 For Thin Shell) [2] = Mass [3-5] = Center Of Mass (COFM), WCS [6-8] = First Moments (centroidal) [9-11] = Moments Of Inertia, WCS [12-14] = Moments Of Inertia (centroidal) [15] = Spherical Moment Of Inertia [16-18] = Inertia Products, WCS [19-21] = Inertia Products (centroidal) [22-30] = Principal Axes, WCS [31-33] = Principal Moments (centroidal) [34-36] = Radii Of Gyration, WCS [37-39] = Radii Of Gyration (centroidal) [40] = Spherical Radius Of Gyration [41-45] = Unused [46] = Density

statistics(list of float): Errors are Estimates of the Relative Tolerances achieved if accuracy = 2; otherwise +/- range errors are given [0] = Error For Surface Area [1] = Error For Volume [2] = Error For Mass [3] = Radius Of Error Sphere [4] = Error For Moment XC [5] = Error For Moment YC [6] = Error For Moment ZC [7] = Error For Moment Of Inertia XC [8] = Error For Moment Of Inertia YC [9] = Error For Moment Of Inertia ZC [10] = Error For Product Of Inertia XCYC [11] = Error For Product Of Inertia YCZC [12] = Error For Product Of Inertia XCZC

License requirements: None