Skip to content

Navigation Menu

Sign in
Sign up

Export Mass CoG Inertia To CSV

KaiUR edited this page May 21, 2026 · 4 revisions

Export Mass CoG Inertia To CSV

File: Part_Document_Scripts/Export_Mass_CoG_Inertia_To_CSV.py
Version: 1.1
Document Type: Part


Description

Iterates through all solid bodies in the active part and uses the CATIA SPA workbench to extract physical properties for each body. Results are exported to a CSV file next to the CATPart. Mass requires a material to be applied to the body — bodies without material will show mass as N/A.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document Part

Usage

  1. Open a CATPart document containing one or more solid bodies
  2. Optionally apply a material to each body to enable mass output
  3. Run the script — the CSV is written automatically

Output

A CSV file named <PartName>_MassProperties.csv saved next to the CATPart, containing:

Column Description
Body Name of the solid body
Mass_kg Mass in kilograms (requires material)
Volume_mm3 Volume in mm3
Area_mm2 Surface area in mm2
CoG_X / Y / Z Centre of gravity coordinates in mm
Ixx–Izz Full ×ばつ3 inertia tensor (kg·mm2)

Notes

  • Mass is read from the product Analyze interface and requires a material with density to be applied
  • Volume, area, CoG, and inertia do not require material
  • Only solid bodies (PartBody and additional bodies) are processed — GSD geometric sets are not measured
  • For measuring curve lengths and surface areas in GSD geometric sets use Export Curve Lengths Surface Areas To CSV

Home


Getting Started


Contributing


Any Document Scripts


Drawing Document Scripts


Part Document Scripts


Shape Generation Scripts


Process Document Scripts


Product Document Scripts


Utility Scripts


Legal

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /