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

Inheritance

object ← ConstraintAPI

Extension Methods

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

Methods

CreateBall(SubSystemDocument, Obj, Obj, Vector, string, FrictionBall, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a ball constraint. baseEntity Obj The base entity of a ball constraint. actionEntity Obj The action entity of a ball constraint. position Vector The position of a ball constraint. name string The name of a ball constraint. friction FrictionBall The friction of a ball constraint. 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.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a constant velocity constraint. baseEntity Obj The base entity of a constant velocity constraint. actionEntity Obj The action entity of a constant velocity constraint. position Vector The position of a constant velocity constraint. baseZAxis Vector The base Z-Axis of a constant velocity constraint. actionZAxis Vector The action Z-Axis of a constant velocity constraint. orthogonalAxis Vector The orthogonal Axis of a constant velocity constraint. name string The name of a constant velocity constraint. 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 magnitude of ‘baseZAxis’, ‘actionZAxis’, ‘orthogonalAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseZAxis’ is equal to ‘actionZAxis’, ‘orthogonalAxis’ or if ‘actionZAxis’ is equal to ‘orthogonalAxis’.

CreateCylindrical(SubSystemDocument, Obj, Obj, Vector, Vector, string, Relative, Relative, Restriction?, Restriction?, AdvancedRestriction?, AdvancedRestriction?, FrictionTranslational, FrictionRevolute, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a cylindrical constraint. baseEntity Obj The base entity of a cylindrical constraint. actionEntity Obj The action entity of a cylindrical constraint. position Vector The position of a cylindrical constraint. zAxis Vector The Z-Axis of cylindrical constraint. name string The name of a cylindrical constraint. relativeT Relative The translational relative of a revolute constraint. It’s type can be ‘None’, ‘Motion Function’, ‘Initial Conditions’, ‘Motion User Subroutine’. relativeR Relative The revolute relative of a revolute constraint. It’s type can be ‘None’, ‘Motion Function’, ‘Initial Conditions’, ‘Motion User Subroutine’. restrictionT Restriction? The translational restriction of a cylindrical constraint. restrictionR Restriction? The revolute restriction of a cylindrical constraint. avancedRestrictionT AdvancedRestriction? The translational advanced restriction of a cylindrical constraint. advancedRestrictionR AdvancedRestriction? The revolute advanced restriction of a cylindrical constraint. frictionT FrictionTranslational The translational friction of a cylindrical constraint. frictionR FrictionRevolute The revolute friction of a cylindrical constraint. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a distance constraint. baseEntity Obj The base entity of a distance constraint. actionEntity Obj The action entity of a distance constraint. basePosition Vector The base position of a distance constraint. actionPosition Vector The action position of a distance constraint. name string The name of a distance constraint. 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 ‘basePosition’ is equal to ‘actionPosition’.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a fixed constraint. baseEntity Obj The base entity of a fixed constraint. actionEntity Obj The action entity of a fixed constraint. position Vector The position of a fixed constraint. name string The name of a fixed constraint. 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.

CreateGroupAutoConnector(SubSystemDocument, IEnumerable<Obj>)

Parameters

subSystemDocument SubSystemDocument groups IEnumerable<Obj>

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a inline constraint. baseEntity Obj The base entity of a inline constraint. actionEntity Obj The action entity of a inline constraint. basePosition Vector The base position of a inline constraint. actionPosition Vector The action position of a inline constraint. name string The name of a inline constraint. 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 the type of ‘basePosition’ is equal to ‘actionPosition’..

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a inplane constraint. baseEntity Obj The base entity of a inplane constraint. actionEntity Obj The action entity of a inplane constraint. basePosition Vector The base position of a inplane constraint. actionPosition Vector The action position of a inplane constraint. zAxis Vector The Z-Axis of a inplane constraint. name string The name of a inplane constraint. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a orientation constraint. baseEntity Obj The base entity of a orientation constraint. actionEntity Obj The action entity of a orientation constraint. position Vector The position of a orientation constraint. name string The name of a orientation constraint. 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.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a parallel constraint. baseEntity Obj The base entity of a parallel constraint. actionEntity Obj The action entity of a parallel constraint. basePosition Vector The base position of a parallel constraint. actionPosition Vector The action position of a parallel constraint. zAxis Vector The Z-Axis of a parallel constraint. name string The name of a parallel constraint. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a perpendicular constraint. baseEntity Obj The base entity of a perpendicular constraint. actionEntity Obj The action entity of a perpendicular constraint. position Vector The position of a perpendicular constraint. baseZAxis Vector The base Z-Axis of a perpendicular constraint. actionZAxis Vector The action Z-Axis of a perpendicular constraint. name string The name of a perpendicular constraint. 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 magnitude of ‘baseZAxis’, ‘actionZAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a perpendicular constraint. baseEntity Obj The base entity of a perpendicular constraint. actionEntity Obj The action entity of a perpendicular constraint. basePosition Vector The base position of a perpendicular constraint. actionPosition Vector The action position of a perpendicular constraint. baseZAxis Vector The base Z-Axis of a perpendicular constraint. actionZAxis Vector The action Z-Axis of a perpendicular constraint. name string The name of a perpendicular constraint. 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 magnitude of ‘baseZAxis’, ‘actionZAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable. ArgumentException Will be thrown if ‘baseZAxis’ is equal to ‘actionZAxis’.

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

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a planar constraint. baseEntity Obj The base entity of a planar constraint. actionEntity Obj The action entity of a planar constraint. position Vector The position of a planar constraint. zAxis Vector The Z-Axis of a planar constraint. name string The name of a planar constraint. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateRevolute(SubSystemDocument, Obj, Obj, Vector, string, Relative, Restriction?, AdvancedRestriction?, FrictionRevolute, ClearanceRevolute, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a revolute constraint. baseEntity Obj The base entity of a revolute constraint. actionEntity Obj The action entity of a revolute constraint. position Vector The position of a revolute constraint. name string The name of a revolute constraint. relative Relative The relative of a revolute constraint. It’s type can be ‘None’, ‘Motion Function’, ‘Initial Conditions’, ‘Motion User Subroutine’. restriction Restriction? The restriction of a revolute constraint. advancedRestriction AdvancedRestriction? The advanced restriction of a revolute constraint. friction FrictionRevolute The friction of a revolute constraint. clearance ClearanceRevolute The clearance of a revolute constraint. 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.

CreateRevolute(SubSystemDocument, Obj, Obj, Vector, Vector, string, Relative, Restriction?, AdvancedRestriction?, FrictionRevolute, ClearanceRevolute, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a revolute constraint. baseEntity Obj The base entity of a revolute constraint. actionEntity Obj The action entity of a revolute constraint. position Vector The position of a revolute constraint. zAxis Vector The Z-Axis of a revolute constraint. name string The name of a revolute constraint. relative Relative The relative of a revolute constraint. It’s type can be ‘None’, ‘Motion Function’, ‘Initial Conditions’, ‘Motion User Subroutine’. restriction Restriction? The restriction of a revolute constraint. advancedRestriction AdvancedRestriction? The advanced restriction of a revolute constraint. friction FrictionRevolute The friction of a revolute constraint. clearance ClearanceRevolute The clearance of a revolute constraint. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateScrew(SubSystemDocument, Obj, Obj, Vector, Vector, ExpressionValueVariable?, string, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a screw. baseEntity Obj The base entity of a screw. actionEntity Obj The action entity of a screw. position Vector The position of a screw. zAxis Vector The Z-Axis of a screw. pitch ExpressionValueVariable? The pitch of a screw. name string The name of a screw. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateTranslational(SubSystemDocument, Obj, Obj, Vector, Vector, string, Relative, Restriction?, AdvancedRestriction?, FrictionTranslational, ClearanceTranslational, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a translational constraint. baseEntity Obj The base entity of a translational constraint. actionEntity Obj The action entity of a translational constraint. position Vector The position of a translational constraint. zAxis Vector The Z-Axis of a translational constraint. name string The name of a translational constraint. relative Relative The relative of a translational constraint. It’s type can be ‘None’, ‘Motion Function’, ‘Initial Conditions’, ‘Motion User Subroutine’. restriction Restriction? The restriction of a translational constraint. advancedRestriction AdvancedRestriction? The advanced restriction of a translational constraint. friction FrictionTranslational The friction of a translational constraint. clearance ClearanceTranslational The clearance of a translational constraint. 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 magnitude of ‘zAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

CreateUniversal(SubSystemDocument, Obj, Obj, Vector, Vector, Vector, string, FrictionUniversal, FrictionUniversal, SymmetricType)

Create General

Parameters

subSystemDocument SubSystemDocument The SubSystemDocument to create a universal constraint. baseEntity Obj The base entity of a universal constraint. actionEntity Obj The action entity of a universal constraint. position Vector The position of a universal constraint. baseXAxis Vector The base X-Axis of a universal constraint. actionXAxis Vector The action X-Axis of a universal constraint. name string The name of a universal constraint. baseFriction FrictionUniversal The base friction of a universal constraint. actionFriction FrictionUniversal The action friction of a universal constraint. 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 magnitude of ‘baseXAxis’, ‘actionXAxis’ is 0 and if the type of ‘baseEntity’, ‘actionEntity’ is not IConnectable.

GetSymmetricObject<T>(SymmetricType, IObjectBase)

Get a symmetric object.

Parameters

symmetricType SymmetricType The symmetric type of the object. objectBase IObjectBase The obejct.

Returns

T the object seleted by this API.

Type Parameters

T The object type

GetSymmetricResult(SymmetricType, IObjectBase)

Get a symmetric result.

Parameters

symmetricType SymmetricType The symmetric type of the object. objectBase IObjectBase The obejct.

Returns

Obj the object seleted by this API.