Getting the Value for a Given Component

The API uses 0-based row indices using a method for each column. Because only the lower left triangle can be controlled, each method will have a different range of valid indices.

For example, to get the coefficient for the stiffness per unit Y at row index 1:

bws.GetBushingStiffnessPerUnitY(1)

Assume that 136073.550978543 displays as the stiffness per unit Y.

Now, assume you have entered the following:

bws.GetBushingStiffnessPerUnitZ(0)

The given index of 0 (zero) produces an error message because the cell indicated is in the upper right triangle. As per the error message, the valid range of indices is 2 to 5, inclusive.

The following figure shows some of the many methods available for getting coefficients for damping and stiffness using the Mechanical Scripting view's autocomplete feature.