Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class LeafSpringOperationExtensions

Last update: 16.07.2025

Namespace: VM.Operations.Pre.Force
Assembly: VM.Operations.Pre.Force.dll

public static class LeafSpringOperationExtensions

Inheritance

objectLeafSpringOperationExtensions

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Methods

CopyBushPropertyValue(PropertyBush, PropertyBush)

public static void CopyBushPropertyValue(PropertyBush target, PropertyBush source)

Parameters

target PropertyBush

source PropertyBush

CreateCenterBoltBody(Document, string, Vector, double, bool)

public static SolidBody CreateCenterBoltBody(Document document, string name, Vector position, double mass, bool addToDocument = true)

Parameters

document Document

name string

position Vector

mass double

addToDocument bool

Returns

SolidBody

CreateClipToLeafVectorForceUserSubroutine(Document, PropertyVector, string, Clip, BeamGroup, int, Marker, CenterMarker, SolidBody, bool)

public static UserSubroutine CreateClipToLeafVectorForceUserSubroutine(Document document, PropertyVector property, string name, Clip clip, BeamGroup leafBeamGroup, int beamGroupBodyIndex, Marker upperMarker, CenterMarker fixedBodyCenterMarker, SolidBody beamGroupBody, bool addToDocument = true)

Parameters

document Document

property PropertyVector

name string

clip Clip

leafBeamGroup BeamGroup

beamGroupBodyIndex int

upperMarker Marker

fixedBodyCenterMarker CenterMarker

beamGroupBody SolidBody

addToDocument bool

Returns

UserSubroutine

CreateEyeBody(Document, string, (Vector Top, Vector Bottom), (double Outer, double Inner), bool)

public static SolidBody CreateEyeBody(Document document, string name, (Vector Top, Vector Bottom) position, (double Outer, double Inner) radius, bool addToDocument = true)

Parameters

document Document

name string

position (Vector Top, Vector Bottom)

radius (double Outer, double Inner)

addToDocument bool

Returns

SolidBody

CreateLeafToLeafVectorForceUserSubroutine(Document, PropertyVector, string, Leaf[], IList, int, int, int, int, CenterMarker, CenterMarker, bool)

public static UserSubroutine CreateLeafToLeafVectorForceUserSubroutine(Document document, PropertyVector property, string name, Leaf[] leaves, IList<leafinfo> leafInfos, int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex, CenterMarker baseBodyCenterMarker, CenterMarker actionBodyCenterMarker, bool addToDocument = true)

Parameters

document Document

property PropertyVector

name string

leaves Leaf[]

leafInfos IList

baseLeafIndex int

baseBodyIndex int

actionLeafIndex int

actionBodyIndex int

baseBodyCenterMarker CenterMarker

actionBodyCenterMarker CenterMarker

addToDocument bool

Returns

UserSubroutine

GetConnectionOrientation(ConnectionType)

public static OMatrix GetConnectionOrientation(ConnectionType connectionType)

Parameters

connectionType ConnectionType

Returns

OMatrix

GetShackleBodyBuilder(double, int, (Vector Top, Vector Bottom), (Vector Top, Vector Bottom), Shackle)

public static BuilderMulti GetShackleBodyBuilder(double mainLeafWidth, int directionY, (Vector Top, Vector Bottom) eyeHolePosition, (Vector Top, Vector Bottom) shackleHolePosition, Shackle shackle)

Parameters

mainLeafWidth double

directionY int

eyeHolePosition (Vector Top, Vector Bottom)

shackleHolePosition (Vector Top, Vector Bottom)

shackle Shackle

Returns

BuilderMulti

GetclipBodyRadius(Clip)

public static double GetclipBodyRadius(Clip clip)

Parameters

clip Clip

Returns

double

SetBushPropertyAllZero(PropertyBush)

public static void SetBushPropertyAllZero(PropertyBush propertyBush)

Parameters

propertyBush PropertyBush

Connect with Ansys