Centroid Example

Simple tool to calculate the centroid coordinates of a selected element

This script prompts the user to select an element via the graphics area and prints the centroid X, Y and Z coordinates to the dialogue panel.

Function:
Centroid – computes the average X, Y and Z coordinates of an element (the centroid) and returns the value as an array.

Shell element model is provided as an example.