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

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

```csharp theme={null}
public class MeshFile
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[MeshFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.MeshFile.md)

#### 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_),
[BDFWriter.WriteBDFFile(MeshFile, string, Action\<TextWriter>, Action\<TextWriter>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.BDFWriter.md#VM_Models_FE_Mesh_Writer_BDFWriter_WriteBDFFile_VM_Models_FE_Mesh_MeshFile_System_String_System_Action_System_IO_TextWriter__System_Action_System_IO_TextWriter__),
[BDFWriter.WriteBDFFile(MeshFile, Stream, Action\<TextWriter>, Action\<TextWriter>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.BDFWriter.md#VM_Models_FE_Mesh_Writer_BDFWriter_WriteBDFFile_VM_Models_FE_Mesh_MeshFile_System_IO_Stream_System_Action_System_IO_TextWriter__System_Action_System_IO_TextWriter__),
[BDFWriter.WriteBDFFile(MeshFile, TextWriter, Action\<TextWriter>, Action\<TextWriter>)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.BDFWriter.md#VM_Models_FE_Mesh_Writer_BDFWriter_WriteBDFFile_VM_Models_FE_Mesh_MeshFile_System_IO_TextWriter_System_Action_System_IO_TextWriter__System_Action_System_IO_TextWriter__),
[NeutralWriter.WriteNeutralFile(MeshFile, string)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.NeutralWriter.md#VM_Models_FE_Mesh_Writer_NeutralWriter_WriteNeutralFile_VM_Models_FE_Mesh_MeshFile_System_String_),
[NeutralWriter.WriteNeutralFile(MeshFile, Stream)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.NeutralWriter.md#VM_Models_FE_Mesh_Writer_NeutralWriter_WriteNeutralFile_VM_Models_FE_Mesh_MeshFile_System_IO_Stream_),
[NeutralWriter.WriteNeutralFile(MeshFile, BinaryWriter)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.NeutralWriter.md#VM_Models_FE_Mesh_Writer_NeutralWriter_WriteNeutralFile_VM_Models_FE_Mesh_MeshFile_System_IO_BinaryWriter_)

## Constructors

### MeshFile()

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

## Properties

### IsTemporary

```csharp theme={null}
protected bool IsTemporary { get; set; }
```

#### Property Value

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

## Methods

### Add(object)

```csharp theme={null}
public void Add(object obj)
```

#### Parameters

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

### AddBunch(IEnumerable)

```csharp theme={null}
public void AddBunch(IEnumerable enumObjs)
```

#### Parameters

`enumObjs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

### Connect(string)

```csharp theme={null}
public static MeshFile Connect(string pathMeshFile)
```

#### Parameters

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

#### Returns

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

### Create(string)

```csharp theme={null}
public static MeshFile Create(string pathMeshFile)
```

#### Parameters

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

#### Returns

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

### CreateTable\<T>()

```csharp theme={null}
protected void CreateTable<T>() where T : new()
```

#### Type Parameters

`T`

### CreateTemporary()

```csharp theme={null}
public static MeshFile CreateTemporary()
```

#### Returns

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

### Dispose()

```csharp theme={null}
public void Dispose()
```

### Dispose(bool)

```csharp theme={null}
protected virtual void Dispose(bool disposing)
```

#### Parameters

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

### Initialize(string)

```csharp theme={null}
protected void Initialize(string pathMeshFile)
```

#### Parameters

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

### QueryByColumn\<T>(string, object)

```csharp theme={null}
public IEnumerable<T> QueryByColumn<T>(string columnName, object value) where T : class, new()
```

#### Parameters

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

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

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<T>

#### Type Parameters

`T`

### Table\<T>()

```csharp theme={null}
public IEnumerable<T> Table<T>() where T : class, new()
```

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<T>

#### Type Parameters

`T`

### TryQueryByID\<T>(int, out T)

```csharp theme={null}
public bool TryQueryByID<T>(int id, out T result) where T : class, new()
```

#### Parameters

`id` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`result` T

#### Returns

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

#### Type Parameters

`T`
