In Catia V5, do you know of a solution to obtain the coordinates in a table of all the centers of gravity of all the products present in an assembly?

In Catia V5, do you know of a solution to obtain the coordinates in a table of all the centers of gravity of all the products present in an assembly ?

Hello

One possibility is to go through inertia measurements at the assembly level (keep the measurements)

then we create the Excel table from these measurements

Yes Franck, it could be the solution but I can't manage to export all the inertia measurements to Excel.

Do you have a manipulation to do this? Please

Hello once you have all the measurements under your head assembly, (I advise you to have customized the measurement function to keep only the coordinates of the center of gravity, and to rename each meter to identify them easily).

You run the parameterization table command (Create a parameterization table with parameters from the current model).

When the choice window appears, simply point with the mouse in the graph under the measurement node the parameters (Gx; Gy; Gz)  one after the other (if you rename it's easier there is a filter by type (renamed parameters).

Hello,

You have to use a macro for that. And unless I'm mistaken, the basic license doesn't allow it.

@+

 

Thank you Franck, it requires a bit of work (renaming..) but we get a table with all the centers of gravity.

As I said, it's a possibility but it has a disadvantage :

You have to redo the Excel table if the geometry of a single component changes, the measurements update but not the table (normal behavior, it's the table that is supposed to drive).

By macro yes (it's not my area of expertise). the macro will still have to modify the Excel file each time the geometry changes.

It is not necessary to have a specific license to record or create a macro.

By default CATIA has a VBA Editor and the available APIs are under DOCV5

Some APIs are not free, they require a specific CAA module (I think).