> ## 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 Magnetic

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

Magnetic force

```csharp theme={null}
public class Magnetic : SubEntity, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IReportable, IMultiChangable, ILinkOwner, ILinkUpdateOwner
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object\<ObjectEventCore> ←
SubEntity ←
[Magnetic](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Force.Magnetic.md)

#### Implements

IObservableObject,
IDisposableObject,
ILinkable,
ILinkContainerEvent,
IVerifiable,
IHistoryObjectSerializable,
IAttributeContainer,
ISubEntity,
IEntityBase,
IObjectBase,
IObject,
ILinkContainer,
IOwned,
IHasID,
IEventProvider,
IHasKeyObject,
IHasName,
IEnabled,
IHasComment,
INamed,
INavigatorItem,
IReportable,
IMultiChangable,
ILinkOwner,
ILinkUpdateOwner

#### Inherited Members

SubEntity.Initialize(Unit.ConvertFactor),
SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool),
SubEntity.FixUp(ObjectBase),
SubEntity.WriteTemplateImpl(XmlWriter),
SubEntity.ReadTemplateImpl(XmlReader),
SubEntity.Name,
SubEntity.FullName,
SubEntity.NonSymmetricName,
SubEntity.DisplayName,
SubEntity.IsEnabled,
SubEntity.Comment,
Object\<ObjectEventCore>.GetKey(),
Object\<ObjectEventCore>.Initialize(Unit.ConvertFactor),
Object\<ObjectEventCore>.SetIconColor(Canvas),
Object\<ObjectEventCore>.OnDeserialization(object),
Object\<ObjectEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext),
Object\<ObjectEventCore>.RollbackEvent(),
Object\<ObjectEventCore>.OnDeserializedCore(object),
Object\<ObjectEventCore>.Key,
Object\<ObjectEventCore>.UntypedEventCore,
Object\<ObjectEventCore>.EventCore,
Object\<ObjectEventCore>.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-r1/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-r1/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-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### Magnetic()

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

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

### Magnetic(string)

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

```csharp theme={null}
public Magnetic(string strName)
```

#### Parameters

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

Name of the string.

## Fields

### \_\_a\$\_a\_VM.Models.Pre.LinkAttribute

```csharp theme={null}
protected LinkAttribute __a$_a_VM.Models.Pre.LinkAttribute
```

#### Field Value

LinkAttribute

### \_\_a\$\_a\_VM.Models.Pre.LinkUpdateAttribute

```csharp theme={null}
protected LinkUpdateAttribute __a$_a_VM.Models.Pre.LinkUpdateAttribute
```

#### Field Value

LinkUpdateAttribute

## Properties

### Criterion

Gets or sets the criterion.

```csharp theme={null}
public ExpressionValueVariable Criterion { get; set; }
```

#### Property Value

ExpressionValueVariable

### DesignName

Gets or sets the design name.

```csharp theme={null}
public string DesignName { get; set; }
```

#### Property Value

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

### GroupInformations

Gets or sets the path data.

```csharp theme={null}
public Magnetic.GroupInformation[] GroupInformations { get; set; }
```

#### Property Value

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

### InterfaceStepFactor

Gets or sets the interface step factor.

```csharp theme={null}
public CompositeFieldUsable InterfaceStepFactor { get; set; }
```

#### Property Value

CompositeFieldUsable

### MeasurementType

Gets or sets the measurement type.

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

#### Property Value

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

### ProjectRelativeFilePath

Gets or sets the project relative file path.

```csharp theme={null}
public string ProjectRelativeFilePath { get; set; }
```

#### Property Value

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

### StopAutomatically

Gets or sets the stop automatically flag.

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

#### Property Value

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

## Methods

### AddGroupInformation(Group)

Add group information.

```csharp theme={null}
public void AddGroupInformation(Group group)
```

#### Parameters

`group` Group

The group

### AddGroupInformation(Group, IMarker)

Add group information.

```csharp theme={null}
public void AddGroupInformation(Group group, IMarker marker)
```

#### Parameters

`group` Group

The group

`marker` IMarker

The marker

### FixUp(ObjectBase)

Before destroy the old object, perform a work.

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

#### Parameters

`objectBase` ObjectBase

The old object.

#### Returns

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

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

### GetDefaultMarkerInGroup(Group)

Gets default marker in group

```csharp theme={null}
public static IMarker GetDefaultMarkerInGroup(Group group)
```

#### Parameters

`group` Group

The group

#### Returns

IMarker

The marker

### GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)

Gets the object information for model navigator \[implementation].

```csharp theme={null}
protected override bool GetModelNavigatorInformationImpl(XmlDocument xmlDom, XmlElement xmlEle, bool bHasChild)
```

#### Parameters

`xmlDom` [XmlDocument](https://learn.microsoft.com/dotnet/api/system.xml.xmldocument)

The XmlDocument for object.

`xmlEle` [XmlElement](https://learn.microsoft.com/dotnet/api/system.xml.xmlelement)

The XmlElement for object.

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

if set to `true` \[has child].

#### Returns

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

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

### GetTransformInGroup(IMarker, Group)

Getst transform in group.

```csharp theme={null}
public static TMatrix GetTransformInGroup(IMarker marker, Group group)
```

#### Parameters

`marker` IMarker

The marker

`group` Group

The group

#### Returns

TMatrix

The marker transform

### Initialize(ConvertFactor)

Initializes member through unit convert factor.

```csharp theme={null}
public override void Initialize(Unit.ConvertFactor factor)
```

#### Parameters

`factor` Unit.ConvertFactor

The unit convert factor.

### OnLinkReserved(ILink, object, EventArgs)

```csharp theme={null}
protected override void OnLinkReserved(ILink reserved, object objNotifier, EventArgs args)
```

#### Parameters

`reserved` ILink

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs)
