    

 ## On this page

  

 

 # Class VectorForceUserSubroutine

 Last update: 09.03.2026 

<a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine"></a>

Namespace: [VM.Managed.DAFUL.Force](VM.Managed.DAFUL.Force.md)  
Assembly: VMDFP.dll

This class is to represent the vector force charactoristic properties of user-subroutine type.

```csharp
public sealed class VectorForceUserSubroutine : VectorForceFunction, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable, IReservable

```

#### Inheritance

object ← ObservableObject ← [LinkableBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/LinkableBase.cs) ← LinkContainer ← [VectorForceFunction](VM.Managed.DAFUL.Force.VectorForceFunction.md) ← [VectorForceUserSubroutine](VM.Managed.DAFUL.Force.VectorForceUserSubroutine.md)

#### Implements

IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable, IReservable

#### Inherited Members

[VectorForceFunction.WriteTemplate(XmlWriter)](VM.Managed.DAFUL.Force.VectorForceFunction.md#VM_Managed_DAFUL_Force_VectorForceFunction_WriteTemplate_System_Xml_XmlWriter_), [VectorForceFunction.ReadTemplate(XmlReader)](VM.Managed.DAFUL.Force.VectorForceFunction.md#VM_Managed_DAFUL_Force_VectorForceFunction_ReadTemplate_System_Xml_XmlReader_), [VectorForceFunction.\_ReferenceMarker](VM.Managed.DAFUL.Force.VectorForceFunction.md#VM_Managed_DAFUL_Force_VectorForceFunction__ReferenceMarker), [VectorForceFunction.ReferenceMarker](VM.Managed.DAFUL.Force.VectorForceFunction.md#VM_Managed_DAFUL_Force_VectorForceFunction_ReferenceMarker), [VectorForceFunction.IsUseRM](VM.Managed.DAFUL.Force.VectorForceFunction.md#VM_Managed_DAFUL_Force_VectorForceFunction_IsUseRM), [VectorForceFunction.Type](VM.Managed.DAFUL.Force.VectorForceFunction.md#VM_Managed_DAFUL_Force_VectorForceFunction_Type), LinkContainer.SetModified(), LinkContainer.raise\_OnUpdating(object, LinkEventArgs), LinkContainer.raise\_OnUpdate(object, LinkEventArgs), LinkContainer.raise\_OnDestroying(object, LinkEventArgs), LinkContainer.raise\_OnDestroy(object, LinkEventArgs), LinkContainer.raise\_OnAdded(object, AddToDocEventArgs), LinkContainer.raise\_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.SetContainer(IOwned, bool), LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.OnUpdating, ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine__ctor"></a> VectorForceUserSubroutine()

Initializes a new instance of the  class.

```csharp
public VectorForceUserSubroutine()

```

### <a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine__ctor_VM_Managed_DAFUL_Force_PropertyVector_"></a> VectorForceUserSubroutine(PropertyVector)

Initializes a new instance of the  class.

```csharp
public VectorForceUserSubroutine(PropertyVector owner)

```

#### Parameters

`owner` [PropertyVector](VM.Managed.DAFUL.Force.PropertyVector.md)

The owner vector force property.

## Properties

### <a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine_Type"></a> Type

Gets the function type.

```csharp
public override VectorForceFunction.FunctionType Type { get; }

```

#### Property Value

[VectorForceFunction](VM.Managed.DAFUL.Force.VectorForceFunction.md).[FunctionType](VM.Managed.DAFUL.Force.VectorForceFunction.FunctionType.md)

### <a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine_UserSubroutine"></a> UserSubroutine

Gets or sets the user subroutine.

```csharp
public UserSubroutine UserSubroutine { get; set; }

```

#### Property Value

[UserSubroutine](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDSP/UserSubroutine.cs)

## Methods

### <a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine_ReadTemplate_System_Xml_XmlReader_"></a> ReadTemplate(XmlReader)

Reads the template.

```csharp
public override void ReadTemplate(XmlReader reader)

```

#### Parameters

`reader` XmlReader

The reader.

### <a id="VM_Managed_DAFUL_Force_VectorForceUserSubroutine_WriteTemplate_System_Xml_XmlWriter_"></a> WriteTemplate(XmlWriter)

Writes the template.

```csharp
public override void WriteTemplate(XmlWriter writer)

```

#### Parameters

`writer` XmlWriter

The writer.