User Tools

Site Tools


wiki:sns:snsscript:body_loads

Body Loads Specification

boolSuccess = objSnSScript.SetBodyLoadRotational(GUID, LoadDescription, AngularVelocity, AngularAcceleration, Origin, Direction)

This function puts a rotational body load on the object. Equivalent to a Body Load Rotational in SnS.

ParameterDescription
String GUIDRhino ID of the object.
String LoadDescriptionDescription of this load. Equivalent to the Description entered in the text box when creating or editing loads in SnS. Should be unique.
Double AngularVelocityThe magnitude of the angular velocity, in radians per second.
Double AngularAccelerationThe magnitude of the angular acceleration, in radians per seconds squared.
Array(double) OriginAn 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) DirectionAn 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 TypeDescription
BooleanTrue if the load was successfully added to the object, False otherwise.

boolSuccess = objSnSScript.SetBodyLoadAcceleration(GUID, LoadDescription, LinearAcceleration)

This function puts a linear acceleration load on the object. Equivalent to a Body Load Linear Acceleration in SnS.

ParameterDescription
String GUIDRhino ID of the object.
String LoadDescriptionDescription of this load. Equivalent to the Description entered in the text box when creating or editing loads in SnS. Should be unique.
Array(double) LinearAccelerationAn array of three floating point numbers, representing the linear acceleration vector. Equivalent to the Linear Acceleration Components “Ax, Ay, Az” in SnS.
Return TypeDescription
BooleanTrue if the load was successfully added to the object, False otherwise.

boolSuccess = objSnSScript.SetGravity(GUID, Gravity)

Toggles gravity on or off. Equivalent to the Gravity checkbox in SnS.

ParameterDescription
String GUIDRhino ID of the object.
Boolean GravityIf True, gravity will be turned on, if False, gravity will be turned off. Gravity starts out turned off when solution data is initialized.
Return TypeDescription
BooleanTrue if the gravity was successfully turned on or off, False otherwise.
wiki/sns/snsscript/body_loads.txt · Last modified: 2017/07/14 13:50 by claire