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

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

This class implements APIs to replace FE body.

```csharp theme={null}
public static class ReplaceFEBodyAPI
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ReplaceFEBodyAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.FE.ReplaceFEBodyAPI.md)

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

## Methods

### ReplaceFEBody(SubSystemDocument, Obj, string, bool, bool)

Replace FE body.

```csharp theme={null}
[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "nodalBody" })]
[MatchTypeObj(new object[] { "nodalBody", typeof(NodalBody) })]
[ExistFile(new string[] { "newFilePath" })]
public static void ReplaceFEBody(this SubSystemDocument document, Obj nodalBody, string newFilePath, bool allowMulti = false, bool hideRemoveMessage = true)
```

#### Parameters

`document` SubSystemDocument

The document to replace FE body.

`nodalBody` Obj

The nodal body.

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

The new mesh file path.

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

The multi allow flag. The default value is false.

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

The remove message show/hide flag. The default value is hide.

#### Exceptions

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

Will be thrown if 'document' or 'newFilePath' argument is empty.

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

Will be thrown if 'thickness' value equal to or less than 0.

[FileNotFoundException](https://learn.microsoft.com/dotnet/api/system.io.filenotfoundexception)

Will be thrown if newFilePath file is not exist.
