This function puts a rotational body load on the object. Equivalent to a Body Load Rotational in SnS.
Parameter | Description |
---|---|
String GUID | Rhino ID of the object. |
String LoadDescription | Description of this load. Equivalent to the Description entered in the text box when creating or editing loads in SnS. Should be unique. |
Double AngularVelocity | The magnitude of the angular velocity, in radians per second. |
Double AngularAcceleration | The magnitude of the angular acceleration, in radians per seconds squared. |
Array(double) Origin | An array of three floating point numbers, representing a point in space that is the origin of the rotational axis. In SnS this is specified by using the mouse to select a point, but in SnSScript the point must be numerically specified. |
Array(double) Direction | An array of three floating point numbers, representing a vector that is the direction of the rotational axis. In SnS this is specified by using the mouse to select a direction, but in SnSScript the direction must be numerically specified. |
Return Type | Description |
Boolean | True if the load was successfully added to the object, False otherwise. |
This function puts a linear acceleration load on the object. Equivalent to a Body Load Linear Acceleration in SnS.
Parameter | Description |
---|---|
String GUID | Rhino ID of the object. |
String LoadDescription | Description of this load. Equivalent to the Description entered in the text box when creating or editing loads in SnS. Should be unique. |
Array(double) LinearAcceleration | An array of three floating point numbers, representing the linear acceleration vector. Equivalent to the Linear Acceleration Components “Ax, Ay, Az” in SnS. |
Return Type | Description |
Boolean | True if the load was successfully added to the object, False otherwise. |
Toggles gravity on or off. Equivalent to the Gravity checkbox in SnS.
Parameter | Description |
---|---|
String GUID | Rhino ID of the object. |
Boolean Gravity | If True, gravity will be turned on, if False, gravity will be turned off. Gravity starts out turned off when solution data is initialized. |
Return Type | Description |
Boolean | True if the gravity was successfully turned on or off, False otherwise. |