GUI - JuanDaniel/CenterGravity GitHub Wiki
We will divide the interface of this plugin into three sections:
1. Navigation buttons
This first section shows the number of selected items and allows you to navigate between them.
2. Element data
In this second section the ID, Name and Family of the previously selected element are displayed through the navigation buttons detailed in the previous section.
3. Center of gravity
The expected result is found in this section; the calculation of the center of gravity of the selected element or elements as a whole. This result is presented in two ways, the first separated by its X Y Z values and the second as a vector (X; Y; Z).
Subsequently, a red point labeled with the previously calculated vector will be placed in the corresponding coordinates.
It should be noted that the vector is calculated from the internal origin of Revit and its values are expressed in the unit of measurement used in the project in question.
The red point in Image 2 corresponds to an instance of the CenterGravityFamily that is automatically loaded by the plugin.
It is highly recommended to check that the Generic models category is visible in the active work view, otherwise the center of gravity point will not be displayed.