Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class LeafSpring

Last update: 16.07.2025

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

This class is to represent the Leaf Spring.

public class LeafSpring : Entity<propertyleafspring>, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, IEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, IVisible, IDocumentOwner, INamed, INavigatorItem, IVisible, IMultiChangable, IHasProperty, IGroup, IDraw, IDrawIcon

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBase ← Object ← ContainerObject ← EntityBase ← EntityLeafSpring

Implements

IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, IEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, IVisible, IDocumentOwner, INamed, INavigatorItem, IVisible, IMultiChangable, IHasProperty, IGroup, IDraw, IDrawIcon

Inherited Members

Entity.Initialize(Unit.ConvertFactor), Entity.GetUnnamedObjectName(object), Entity.FindLocal(string), Entity.Property, EntityBase.Initialize(Unit.ConvertFactor), EntityBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), EntityBase.PropertyRequestUpdate(object, LinkEventArgs), EntityBase.OnDeserializationForAttribute(), EntityBase.OnUpdatePropertyImpl(Property, LinkEventArgs), EntityBase.LinkRequestDestroying(object, LinkEventArgs), EntityBase.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool), EntityBase.FixUp(ObjectBase), EntityBase.FindLocal(string), EntityBase.WriteTemplateImpl(XmlWriter), EntityBase.ReadTemplateImpl(XmlReader), EntityBase.LinkAddedToDocument(object, AddToDocEventArgs), EntityBase.OnDeserialization(object), EntityBase.Name, EntityBase.FullName, EntityBase.NonSymmetricName, EntityBase.DisplayName, EntityBase.IsEnabled, EntityBase.Comment, EntityBase.HasLayerExplicitly, EntityBase.UntypedProperty, EntityBase.IsFileProperty, EntityBase.Layer, EntityBase.IsVisible, ContainerObject.Find(string), ContainerObject.FindLocal(string), ContainerObject.GetUnnamedObjectName(object), ContainerObject.GetNewEntityName(string), ContainerObject.GetNewEntityName(string, bool, int), ContainerObject.GetNewEntityName(string, bool, int, int), Object.GetKey(), Object.Initialize(Unit.ConvertFactor), Object.SetIconColor(Canvas), Object.OnDeserialization(object), Object.CustomGetObjectData(SerializationInfo, StreamingContext), Object.RollbackEvent(), Object.OnDeserializedCore(object), Object.Key, Object.UntypedEventCore, Object.EventCore, Object.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray(T[], T[]), ObjectBase.IsEqualList(List, List), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

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

Constructors

LeafSpring()

Initializes a new instance of the class.

public LeafSpring()

LeafSpring(string)

Initializes a new instance of the class.

public LeafSpring(string name)

Parameters

name string

Name of the .

Fields

ActionMarkerName

Gets the action marker name.

public const string ActionMarkerName = "ActionMarker"

Field Value

string

AxleToCenterBoltName

Gets the axle to center bolt constraint name.

public const string AxleToCenterBoltName = "AxleToCenterBolt"

Field Value

string

BaseMarkerName

Gets the base marker name.

public const string BaseMarkerName = "BaseMarker"

Field Value

string

CenterBoltName

Gets the center bolt name.

public const string CenterBoltName = "CenterBolt"

Field Value

string

ClipNamePrefix

Gets the clip name prefix.

public const string ClipNamePrefix = "Clip"

Field Value

string

FrontEyeName

Gets the front eye name.

public const string FrontEyeName = "FrontEye"

Field Value

string

FrontEyeToBeamFixedName

Gets the front eye to beam fixed name.

public const string FrontEyeToBeamFixedName = "FrontEyeToBeamFixed"

Field Value

string

GroundToEyeName

Gets the ground to eye constraint name.

public const string GroundToEyeName = "GroundToEye"

Field Value

string

GroundToShackleName

Gets the ground to shackle constraint name.

public const string GroundToShackleName = "GroundToShackle"

Field Value

string

LeafNamePrefix

Gets the leaf name prefix.

public const string LeafNamePrefix = "Leaf"

Field Value

string

LeafToClipFunctionName

Gets the leaf to clip function name.

public const string LeafToClipFunctionName = "LeafToClip"

Field Value

string

LeafToLeafFunctionName

Gets the leaf to leaf function name.

public const string LeafToLeafFunctionName = "LeafToLeaf"

Field Value

string

RearEyeName

Gets the rear eye name.

public const string RearEyeName = "RearEye"

Field Value

string

RearEyeToBeamFixedName

Gets the rear eye to beam fixed name.

public const string RearEyeToBeamFixedName = "RearEyeToBeamFixed"

Field Value

string

ShackleName

Gets the front shackle name.

public const string ShackleName = "Shackle"

Field Value

string

ShackleToEyeName

Gets the shackle to eye constraint name.

public const string ShackleToEyeName = "ShackleToEye"

Field Value

string

Properties

Assembly

Gets or sets the assembly.

public Assembly Assembly { get; set; }

Property Value

Assembly

Axle

Gets or sets the axle.

public IConnectable Axle { get; set; }

Property Value

IConnectable

EyePosition

Gets or sets the eye position.

public PointBase EyePosition { get; set; }

Property Value

PointBase

FrontFrame

Gets or sets the front frame.

public IConnectable FrontFrame { get; set; }

Property Value

IConnectable

HasLayerExplicitly

Gets a value indicating whether object has a layer explicitly.

protected override bool HasLayerExplicitly { get; }

Property Value

bool

Hide

Gets or sets the hide.

public bool Hide { get; set; }

Property Value

bool

LinkAxle

Gets or sets the axle.

public Linker<iconnectable> LinkAxle { get; set; }

Property Value

Linker

LinkFrontFrame

Gets or sets the front frame.

public Linker<iconnectable> LinkFrontFrame { get; set; }

Property Value

Linker

LinkRearFrame

Gets or sets the rear frame.

public Linker<iconnectable> LinkRearFrame { get; set; }

Property Value

Linker

RearFrame

Gets or sets the rear frame.

public IConnectable RearFrame { get; set; }

Property Value

IConnectable

ReferenceFrame

Gets or sets the reference frame.

public TransformBase ReferenceFrame { get; set; }

Property Value

TransformBase

ShacklePosition

Gets or sets the shackle position.

public PointBase ShacklePosition { get; set; }

Property Value

PointBase

Methods

Draw(Canvas)

draw

public void Draw(Canvas canvas)

Parameters

canvas Canvas

The canvas.

FixUp(ObjectBase)

Before destroy the old object, perform a work.

public override bool FixUp(ObjectBase ob)

Parameters

ob ObjectBase

The old object.

Returns

bool

true if success; otherwise, false.

GetCenterBoltToLeafName(int, int)

Gets the center bolt to leaf constraint name.

public static string GetCenterBoltToLeafName(int leafIndex, int index)

Parameters

leafIndex int

The leaf index.

index int

The constraint index.

Returns

string

The center bolt to leaf constraint name.

GetClipName(int)

Gets the clip name.

public static string GetClipName(int index)

Parameters

index int

The clip index.

Returns

string

The clip name.

GetClipToLeafBushName(int, int)

Gets the clip to leaf bush name.

public static string GetClipToLeafBushName(int clipIndex, int leafIndex)

Parameters

clipIndex int

The clip index.

leafIndex int

The leaf index.

Returns

string

The clip to leaf bush name.

GetClipToLeafFixedName(int)

Gets the clip to leaf fixed name.

public static string GetClipToLeafFixedName(int index)

Parameters

index int

The clip index.

Returns

string

The clip to leaf fixed name.

GetClipToLeafVectorForceName(int, int)

Gets the clip to leaf vector force name.

public static string GetClipToLeafVectorForceName(int clipIndex, int leafIndex)

Parameters

clipIndex int

The clip index.

leafIndex int

The leaf index.

Returns

string

The clip to leaf vector force name.

GetClipUpperMarkerName(int)

Gets the clip upper marker name.

public static string GetClipUpperMarkerName(int index)

Parameters

index int

The clip index.

Returns

string

The clip upper marker name.

GetLeafName(int)

Gets the leaf name.

public static string GetLeafName(int index)

Parameters

index int

The leaf index.

Returns

string

The leaf name.

GetLeafToLeafBushName(int, int, int, int)

Gets the leaf to leaf bush name.

public static string GetLeafToLeafBushName(int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex)

Parameters

baseLeafIndex int

The base leaf index.

baseBodyIndex int

The base body index.

actionLeafIndex int

The action leaf index.

actionBodyIndex int

The action body index.

Returns

string

The leaf to leaf bush name.

GetLeafToLeafVectorForceName(int, int, int, int)

Gets the leaf to leaf vector force name.

public static string GetLeafToLeafVectorForceName(int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex)

Parameters

baseLeafIndex int

The base leaf index.

baseBodyIndex int

The base body index.

actionLeafIndex int

The action leaf index.

actionBodyIndex int

The action body index.

Returns

string

The leaf to leaf vector force name.

GetRepositionMatrix()

Gets the reposition matrix.

public TMatrix? GetRepositionMatrix()

Returns

TMatrix?

The reposition matrix.

PostAddToDocument()

public override void PostAddToDocument()

RaisePropertyChanged(string)

public override void RaisePropertyChanged(string propertyName)

Parameters

propertyName string

ReDraw()

Redraw

public virtual void ReDraw()

ReDrawForHistory()

Redraw for undo/redo

public void ReDrawForHistory()

Connect with Ansys