Skip to main content
Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for force.

Inheritance

object ← ForceAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

CreateBushing(SubSystemDocument, Obj, Obj, Vector, string, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a bush force. baseEntity Obj The base entity of a bush force. actionEntity Obj The action entity of a bush force. position Vector The position of a bush force. name string The name of a bush force. symmetricType SymmetricType The symmetric type of the new General.

Returns

Obj the new General object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’.

CreateBushing(SubSystemDocument, Obj, Obj, Vector, Vector, string, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a bush force. baseEntity Obj The base entity of a bush force. actionEntity Obj The action entity of a bush force. position Vector The position of a bushr force. direction Vector The direction of a bush force. name string The name of a bush force. symmetricType SymmetricType The symmetric type of the new General.

Returns

Obj the new General object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable and if the magnitude of ‘direction’ is 0. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’.

CreateBushing(SubSystemDocument, Obj, Obj, Vector, OMatrix, string, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a bush force. baseEntity Obj The base entity of a bush force. actionEntity Obj The action entity of a bush force. position Vector The position of a bush force. orientation OMatrix The orientation of a bush force. name string The name of a bush force. symmetricType SymmetricType The symmetric type of the new General.

Returns

Obj the new General object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable and if the magnitude of ‘orientation’ is 0. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’. ArgumentException Will be thrown if the X, Y, Z Vector magnitudes of ‘orientation’ are equal to 0.

CreateGeneralBearing(SubSystemDocument, Obj, Obj, Vector, Vector, string)

Create BearingGeneral

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a bearing general force. baseEntity Obj The base entity of a bearing general force. actionEntity Obj The action entity of a bearing general force. position Vector The position of a bearing general force. axisZ Vector The Z-Axis of a bearing general force. name string The name of a bearing general force.

Returns

Obj the new BearingGeneral object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the magnitude of ‘axisZ’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’.

CreateLeafSpring(SubSystemDocument, Obj, Obj, Obj, TMatrix, Vector, Vector, string)

Create LeafSpring

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a leaf spring. frontConnectionFrame Obj The front connection frame of a leaf spring. rearConnectionFrame Obj The rear connection frame of a leaf spring. axle Obj The axle of a leaf spring. transform TMatrix The transform of a leaf spring. eyePosition Vector The eye position of a leaf spring. shackleToFramePosition Vector The shackle to frame position of a leaf spring. name string The name of a leaf spring.

Returns

Obj the new LeafSpring object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘frontConnectionFrame’, ‘rearConnectionFrame’, ‘axle’ argument is null. ArgumentException Will be thrown if the type of ‘frontConnectionFrame’, ‘rearConnectionFrame’, ‘axle’ is not IConnectable. ArgumentException Will be thrown if ‘frontConnectionFrame’, ‘rearConnectionFrame’, ‘axle’ are same. ArgumentException Will be thrown if the X, Y, Z Vector magnitudes of ‘transform’ are equal to 0. ArgumentException Will be thrown if ‘eyePosition’ is equal to ‘shackleToFramePosition’.

CreateMagnetic(SubSystemDocument, IEnumerable<Obj>)

Create a magnetic.

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a magnetic force. groups IEnumerable<Obj> The groups of a magnetic force.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘groups’ is null. ArgumentException Will be thrown if the type of ‘groups’ is not Group.

CreateMatrix(SubSystemDocument, Obj, Obj, Vector, Vector, string, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a matrix force. baseEntity Obj The base entity of a matrix force. actionEntity Obj The action entity of a matrix force. basePosition Vector The base position of a matrix force. actionPosition Vector The action position of a matrix force. name string The name of a matrix force. symmetricType SymmetricType The symmetric type of the new General.

Returns

Obj the new General object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateMatrix(SubSystemDocument, Obj, Obj, Vector, Vector, Obj?, string, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a matrix force. baseEntity Obj The base entity of a matrix force. actionEntity Obj The action entity of a matrix force. basePosition Vector The base position of a matrix force. actionPosition Vector The action position of a matrix force. userSubroutine Obj? The user subroutine of a matrix force. name string The name of a matrix force. symmetricType SymmetricType The symmetric type of the new General.

Returns

Obj the new General object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’. ArgumentException Will be thrown if the type of ‘userSubroutine’ is equal to UserSubroutine.

CreateRotationalScalar(SubSystemDocument, Obj, Obj?, string, SymmetricType)

Create RScalar

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a rotational scalar force. joint Obj The joint of a rotational scalar force. function Obj? The function of a rotational scalar force. name string The name of a rotational scalar force. symmetricType SymmetricType The symmetric type of the new RScalar.

Returns

Obj the new RScalar object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘joint’ argument is null. ArgumentException Will be thrown if the type of ‘joint’ is not IRScalarComponent. ArgumentException Will be thrown if the type of ‘function’ is not UserSubroutine and Function.

CreateRotationalScalar(SubSystemDocument, Obj, Obj, Vector, Vector, Obj?, string, SymmetricType)

Create RScalar

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a rotational scalar force. baseEntity Obj The base entity of a rotational scalar force. actionEntity Obj The action entity of a rotational scalar force. position Vector The position of a rotational scalar force. axisZ Vector The Z-Axis of a rotational scalar force. function Obj? The function of a rotational scalar force. name string The name of a rotational scalar force. symmetricType SymmetricType The symmetric type of the new RScalar.

Returns

Obj the new RScalar object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the magnitude of ‘axisZ’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’. ArgumentException Will be thrown if the type of ‘function’ is not UserSubroutine and Function.

CreateRotationalSpring(SubSystemDocument, Obj, string, SymmetricType)

Create RSpringDamper

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a rotational spring damper force. joint Obj The joint of a rotational spring damper force. name string The name of a rotational spring damper force. symmetricType SymmetricType The symmetric type of the new RSpringDamper.

Returns

Obj the new RSpringDamper object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘joint’ argument is null. ArgumentException Will be thrown if the type of ‘joint’ is not IRotationalMotionComponent.

CreateSpring(SubSystemDocument, Obj, Obj, Vector, Vector, string, SymmetricType)

Create TSpringDamper

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a translational spring damper force. baseEntity Obj The base entity of a translational spring damper force. actionEntity Obj The action entity of a translational spring damper force. basePosition Vector The base position of a translational spring damper force. actionPosition Vector The action position of a translational spring damper force. name string The name of a translational spring damper force. symmetricType SymmetricType The symmetric type of the new TSpringDamper.

Returns

Obj the new TSpringDamper object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’ or if ‘basePosition’ is equal to ‘actionPosition’.

CreateTranslationalScalar(SubSystemDocument, Obj, Obj, Vector, Vector, Obj?, string, SymmetricType)

Create TScalar

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a translational scalar force. baseEntity Obj The base entity of a translational scalar force. actionEntity Obj The action entity of a translational scalar force. basePosition Vector The base position of a translational scalar force. actionPosition Vector The action position of a translational scalar force. function Obj? The function of a translational scalar force. name string The name of a translational scalar force. symmetricType SymmetricType The symmetric type of the new TScalar.

Returns

Obj the new TScalar object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’ or if ‘basePosition’ is equal to ‘actionPosition’. ArgumentException Will be thrown if the type of ‘function’ is not UserSubroutine and Function.

CreateVector(SubSystemDocument, Obj, Obj, Vector, VectorFunctions?, string, SymmetricType)

Create Vector

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a vector force. baseEntity Obj The base entity of a vector force. actionEntity Obj The action entity of a vector force. position Vector The position of a vector force. functions VectorFunctions? The functions of a vector force. name string The name of a vector force. symmetricType SymmetricType The symmetric type of the new Vector.

Returns

Obj the new Vector object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateVector(SubSystemDocument, Obj, Obj, Vector, Vector, VectorFunctions?, string, SymmetricType)

Create Vector

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a vector force. baseEntity Obj The base entity of a vector force. actionEntity Obj The action entity of a vector force. basePosition Vector The base position of a vector force. actionPosition Vector The action position of a vector force. functions VectorFunctions? The functions of a vector force. name string The name of a vector force. symmetricType SymmetricType The symmetric type of the new Vector.

Returns

Obj the new Vector object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’.

CreateVector(SubSystemDocument, Obj, Obj, Vector, Obj, string, SymmetricType)

Create Vector

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a vector force. baseEntity Obj The base entity of a vector force. actionEntity Obj The action entity of a vector force. position Vector The position of a vector force. userSubroutine Obj The user subroutine of a vector force. name string The name of a vector force. symmetricType SymmetricType The symmetric type of the new Vector.

Returns

Obj the new Vector object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’, ‘userSubroutine’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateVector(SubSystemDocument, Obj, Obj, Vector, Vector, Obj, string, SymmetricType)

Create Vector

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a vector force. baseEntity Obj The base entity of a vector force. actionEntity Obj The action entity of a vector force. basePosition Vector The base position of a vector force. actionPosition Vector The action position of a vector force. userSubroutine Obj The user subroutine of a vector force. name string The name of a vector force. symmetricType SymmetricType The symmetric type of the new Vector.

Returns

Obj the new Vector object created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseEntity’, ‘actionEntity’, ‘userSubroutine’ argument is null. ArgumentException Will be thrown if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseEntity’ is equal to ‘actionEntity’. ArgumentException Will be thrown if the type of ‘userSubroutine’ is not UserSubroutine.

RunLeafSpringSimulation(SubSystemDocument, Obj, bool)

Create a LeafSpringSimulation.

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a leaf spring simulation. leafSpring Obj The leaf spring of a leaf spring simulation. isForceTest bool The isForceTest of a leaf spring simulation.

Exceptions

ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘getLeafSpring’ is null. ArgumentException Will be thrown if the type of ‘leafSpring’ is not LeafSpring.