    

 ## On this page

  

 

 # Class AddRemoveBodyToPartEvent

 Last update: 09.03.2026 

<a id="VM_Managed_DAFUL_History_AddRemoveBodyToPartEvent"></a>

Namespace: [VM.Managed.DAFUL.History](VM.Managed.DAFUL.History.md)  
Assembly: VMDFBase.dll

Add or remove body to part history event

```csharp
public class AddRemoveBodyToPartEvent : HistoryEvent

```

#### Inheritance

object ← [HistoryEvent](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs) ← [AddRemoveBodyToPartEvent](VM.Managed.DAFUL.History.AddRemoveBodyToPartEvent.md)

#### Inherited Members

[HistoryEvent.ClearEvent(bool)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.Undo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.Redo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.Clear(bool)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.BeforeUndo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.AfterUndo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.BeforeRedo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.AfterRedo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.BeforeAdded(AddToHistoryManagerEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.AfterAdded(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs), [HistoryEvent.IsValid](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs)

#### 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_History_AddRemoveBodyToPartEvent__ctor_VM_Managed_Document_System_UIntPtr_"></a> AddRemoveBodyToPartEvent(Document, UIntPtr)

Construct new AddRemoveBodyToPartEvent

```csharp
public AddRemoveBodyToPartEvent(Document doc, UIntPtr key)

```

#### Parameters

`doc` Document

`key` UIntPtr

## Methods

### <a id="VM_Managed_DAFUL_History_AddRemoveBodyToPartEvent_AfterRedo_VM_Managed_History_HistoryEventArgs_"></a> AfterRedo(HistoryEventArgs)

Called after redo this event

```csharp
protected override void AfterRedo(HistoryEventArgs args)

```

#### Parameters

`args` [HistoryEventArgs](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEventArgs.cs)

The event argument

### <a id="VM_Managed_DAFUL_History_AddRemoveBodyToPartEvent_AfterUndo_VM_Managed_History_HistoryEventArgs_"></a> AfterUndo(HistoryEventArgs)

Called after undo this event

```csharp
protected override void AfterUndo(HistoryEventArgs args)

```

#### Parameters

`args` [HistoryEventArgs](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEventArgs.cs)

The event argument

### <a id="VM_Managed_DAFUL_History_AddRemoveBodyToPartEvent_Clear_System_Boolean_"></a> Clear(bool)

Clear event

```csharp
protected override void Clear(bool bReserveReferenceCount)

```

#### Parameters

`bReserveReferenceCount` bool

true to reserve reference count, otherwise false.

### <a id="VM_Managed_DAFUL_History_AddRemoveBodyToPartEvent_Redo_VM_Managed_History_HistoryEventArgs_"></a> Redo(HistoryEventArgs)

Redo event

```csharp
protected override void Redo(HistoryEventArgs args)

```

#### Parameters

`args` [HistoryEventArgs](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEventArgs.cs)

The event argument

### <a id="VM_Managed_DAFUL_History_AddRemoveBodyToPartEvent_Undo_VM_Managed_History_HistoryEventArgs_"></a> Undo(HistoryEventArgs)

Undo event

```csharp
protected override void Undo(HistoryEventArgs args)

```

#### Parameters

`args` [HistoryEventArgs](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEventArgs.cs)

The event argument