> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class LeafSpring

Namespace: [VM.Models.Pre.Force](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Force)\
Assembly: VM.Models.Pre.Force.dll

This class is to represent the Leaf Spring.

```csharp theme={null}
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](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object\<EntityEventCore> ←
ContainerObject\<EntityEventCore> ←
EntityBase ←
Entity\<PropertyLeafSpring> ←
[LeafSpring](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Force.LeafSpring.md)

#### 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\<PropertyLeafSpring>.Initialize(Unit.ConvertFactor),
Entity\<PropertyLeafSpring>.GetUnnamedObjectName(object),
Entity\<PropertyLeafSpring>.FindLocal(string),
Entity\<PropertyLeafSpring>.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\<EntityEventCore>.Find(string),
ContainerObject\<EntityEventCore>.FindLocal(string),
ContainerObject\<EntityEventCore>.GetUnnamedObjectName(object),
ContainerObject\<EntityEventCore>.GetNewEntityName(string),
ContainerObject\<EntityEventCore>.GetNewEntityName(string, bool, int),
ContainerObject\<EntityEventCore>.GetNewEntityName(string, bool, int, int),
Object\<EntityEventCore>.GetKey(),
Object\<EntityEventCore>.Initialize(Unit.ConvertFactor),
Object\<EntityEventCore>.SetIconColor(Canvas),
Object\<EntityEventCore>.OnDeserialization(object),
Object\<EntityEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext),
Object\<EntityEventCore>.RollbackEvent(),
Object\<EntityEventCore>.OnDeserializedCore(object),
Object\<EntityEventCore>.Key,
Object\<EntityEventCore>.UntypedEventCore,
Object\<EntityEventCore>.EventCore,
Object\<EntityEventCore>.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>),
ObjectBase.ResetInvalidEntity(),
ObjectBase.OnDeserialization(object),
ObjectBase.IsSerializableEvent(Delegate),
ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext),
ObjectBase.CheckAndUpdateLink(HashSet\<ObjectBase>),
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\[], T\[]),
ObjectBase.IsEqualList(List\<double>, List\<double>),
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)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### LeafSpring()

Initializes a new instance of the [LeafSpring](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Force.LeafSpring.md) class.

```csharp theme={null}
public LeafSpring()
```

### LeafSpring(string)

Initializes a new instance of the [LeafSpring](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Force.LeafSpring.md) class.

```csharp theme={null}
public LeafSpring(string name)
```

#### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the [LeafSpring](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Force.LeafSpring.md).

## Fields

### ActionMarkerName

Gets the action marker name.

```csharp theme={null}
public const string ActionMarkerName = "ActionMarker"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### AxleToCenterBoltName

Gets the axle to center bolt constraint name.

```csharp theme={null}
public const string AxleToCenterBoltName = "AxleToCenterBolt"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### BaseMarkerName

Gets the base marker name.

```csharp theme={null}
public const string BaseMarkerName = "BaseMarker"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### CenterBoltName

Gets the center bolt name.

```csharp theme={null}
public const string CenterBoltName = "CenterBolt"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ClipNamePrefix

Gets the clip name prefix.

```csharp theme={null}
public const string ClipNamePrefix = "Clip"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### FrontEyeName

Gets the front eye name.

```csharp theme={null}
public const string FrontEyeName = "FrontEye"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### FrontEyeToBeamFixedName

Gets the front eye to beam fixed name.

```csharp theme={null}
public const string FrontEyeToBeamFixedName = "FrontEyeToBeamFixed"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GroundToEyeName

Gets the ground to eye constraint name.

```csharp theme={null}
public const string GroundToEyeName = "GroundToEye"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GroundToShackleName

Gets the ground to shackle constraint name.

```csharp theme={null}
public const string GroundToShackleName = "GroundToShackle"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### LeafNamePrefix

Gets the leaf name prefix.

```csharp theme={null}
public const string LeafNamePrefix = "Leaf"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### LeafToClipFunctionName

Gets the leaf to clip function name.

```csharp theme={null}
public const string LeafToClipFunctionName = "LeafToClip"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### LeafToLeafFunctionName

Gets the leaf to leaf function name.

```csharp theme={null}
public const string LeafToLeafFunctionName = "LeafToLeaf"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### RearEyeName

Gets the rear eye name.

```csharp theme={null}
public const string RearEyeName = "RearEye"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### RearEyeToBeamFixedName

Gets the rear eye to beam fixed name.

```csharp theme={null}
public const string RearEyeToBeamFixedName = "RearEyeToBeamFixed"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ShackleName

Gets the front shackle name.

```csharp theme={null}
public const string ShackleName = "Shackle"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ShackleToEyeName

Gets the shackle to eye constraint name.

```csharp theme={null}
public const string ShackleToEyeName = "ShackleToEye"
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Properties

### Assembly

Gets or sets the assembly.

```csharp theme={null}
public Assembly Assembly { get; set; }
```

#### Property Value

[Assembly](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Force.Assembly.md)

### Axle

Gets or sets the axle.

```csharp theme={null}
public IConnectable Axle { get; set; }
```

#### Property Value

IConnectable

### EyePosition

Gets or sets the eye position.

```csharp theme={null}
public PointBase EyePosition { get; set; }
```

#### Property Value

PointBase

### FrontFrame

Gets or sets the front frame.

```csharp theme={null}
public IConnectable FrontFrame { get; set; }
```

#### Property Value

IConnectable

### HasLayerExplicitly

Gets a value indicating whether object has a layer explicitly.

```csharp theme={null}
protected override bool HasLayerExplicitly { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Hide

Gets or sets the hide.

```csharp theme={null}
public bool Hide { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### LinkAxle

Gets or sets the axle.

```csharp theme={null}
public Linker<IConnectable> LinkAxle { get; set; }
```

#### Property Value

Linker\<IConnectable>

### LinkFrontFrame

Gets or sets the front frame.

```csharp theme={null}
public Linker<IConnectable> LinkFrontFrame { get; set; }
```

#### Property Value

Linker\<IConnectable>

### LinkRearFrame

Gets or sets the rear frame.

```csharp theme={null}
public Linker<IConnectable> LinkRearFrame { get; set; }
```

#### Property Value

Linker\<IConnectable>

### RearFrame

Gets or sets the rear frame.

```csharp theme={null}
public IConnectable RearFrame { get; set; }
```

#### Property Value

IConnectable

### ReferenceFrame

Gets or sets the reference frame.

```csharp theme={null}
public TransformBase ReferenceFrame { get; set; }
```

#### Property Value

TransformBase

### ShacklePosition

Gets or sets the shackle position.

```csharp theme={null}
public PointBase ShacklePosition { get; set; }
```

#### Property Value

PointBase

## Methods

### Draw(Canvas)

draw

```csharp theme={null}
public void Draw(Canvas canvas)
```

#### Parameters

`canvas` Canvas

The canvas.

### FixUp(ObjectBase)

Before destroy the old object, perform a work.

```csharp theme={null}
public override bool FixUp(ObjectBase ob)
```

#### Parameters

`ob` ObjectBase

The old object.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` if success; otherwise, `false`.

### GetCenterBoltToLeafName(int, int)

Gets the center bolt to leaf constraint name.

```csharp theme={null}
public static string GetCenterBoltToLeafName(int leafIndex, int index)
```

#### Parameters

`leafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The leaf index.

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The constraint index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The center bolt to leaf constraint name.

### GetClipName(int)

Gets the clip name.

```csharp theme={null}
public static string GetClipName(int index)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The clip index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The clip name.

### GetClipToLeafBushName(int, int)

Gets the clip to leaf bush name.

```csharp theme={null}
public static string GetClipToLeafBushName(int clipIndex, int leafIndex)
```

#### Parameters

`clipIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The clip index.

`leafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The leaf index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The clip to leaf bush name.

### GetClipToLeafFixedName(int)

Gets the clip to leaf fixed name.

```csharp theme={null}
public static string GetClipToLeafFixedName(int index)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The clip index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The clip to leaf fixed name.

### GetClipToLeafVectorForceName(int, int)

Gets the clip to leaf vector force name.

```csharp theme={null}
public static string GetClipToLeafVectorForceName(int clipIndex, int leafIndex)
```

#### Parameters

`clipIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The clip index.

`leafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The leaf index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The clip to leaf vector force name.

### GetClipUpperMarkerName(int)

Gets the clip upper marker name.

```csharp theme={null}
public static string GetClipUpperMarkerName(int index)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The clip index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The clip upper marker name.

### GetLeafName(int)

Gets the leaf name.

```csharp theme={null}
public static string GetLeafName(int index)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The leaf index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The leaf name.

### GetLeafToLeafBushName(int, int, int, int)

Gets the leaf to leaf bush name.

```csharp theme={null}
public static string GetLeafToLeafBushName(int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex)
```

#### Parameters

`baseLeafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The base leaf index.

`baseBodyIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The base body index.

`actionLeafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The action leaf index.

`actionBodyIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The action body index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The leaf to leaf bush name.

### GetLeafToLeafVectorForceName(int, int, int, int)

Gets the leaf to leaf vector force name.

```csharp theme={null}
public static string GetLeafToLeafVectorForceName(int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex)
```

#### Parameters

`baseLeafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The base leaf index.

`baseBodyIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The base body index.

`actionLeafIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The action leaf index.

`actionBodyIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The action body index.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The leaf to leaf vector force name.

### GetRepositionMatrix()

Gets the reposition matrix.

```csharp theme={null}
public TMatrix? GetRepositionMatrix()
```

#### Returns

TMatrix?

The reposition matrix.

### PostAddToDocument()

```csharp theme={null}
public override void PostAddToDocument()
```

### RaisePropertyChanged(string)

```csharp theme={null}
public override void RaisePropertyChanged(string propertyName)
```

#### Parameters

`propertyName` [string](https://learn.microsoft.com/dotnet/api/system.string)

### ReDraw()

Redraw

```csharp theme={null}
public virtual void ReDraw()
```

### ReDrawForHistory()

Redraw for undo/redo

```csharp theme={null}
public void ReDrawForHistory()
```
