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

Namespace: [VM.Managed.CAD.History](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.History)\
Assembly: VMAppCore.dll

This class is to represent the name event for body.

```csharp theme={null}
public class BodyNameAttributeEvent : BodyEventBase
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
HistoryEvent ←
[BodyEventBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.History.BodyEventBase.md) ←
[BodyNameAttributeEvent](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.History.BodyNameAttributeEvent.md)

#### Inherited Members

[BodyEventBase.m\_keyBody](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.History.BodyEventBase.md#VM_Managed_CAD_History_BodyEventBase_m_keyBody),
[BodyEventBase.Clear(bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.History.BodyEventBase.md#VM_Managed_CAD_History_BodyEventBase_Clear_System_Boolean_),
HistoryEvent.ClearEvent(bool),
HistoryEvent.Undo(HistoryEventArgs),
HistoryEvent.Redo(HistoryEventArgs),
HistoryEvent.Clear(bool),
HistoryEvent.BeforeUndo(HistoryEventArgs),
HistoryEvent.AfterUndo(HistoryEventArgs),
HistoryEvent.BeforeRedo(HistoryEventArgs),
HistoryEvent.AfterRedo(HistoryEventArgs),
HistoryEvent.BeforeAdded(AddToHistoryManagerEventArgs),
HistoryEvent.AfterAdded(HistoryEventArgs),
HistoryEvent.IsValid

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

### BodyNameAttributeEvent(object, string)

```csharp theme={null}
public BodyNameAttributeEvent(object obOriginal, string strOldName)
```

#### Parameters

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

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

## Methods

### GetNameAttribute()

```csharp theme={null}
protected virtual string GetNameAttribute()
```

#### Returns

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

### Redo(HistoryEventArgs)

```csharp theme={null}
public override void Redo(HistoryEventArgs args)
```

#### Parameters

`args` HistoryEventArgs

### ReplaceNameAttribute(string)

```csharp theme={null}
protected virtual void ReplaceNameAttribute(string strNameAttr)
```

#### Parameters

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

### Undo(HistoryEventArgs)

```csharp theme={null}
public override void Undo(HistoryEventArgs args)
```

#### Parameters

`args` HistoryEventArgs
