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

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

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[BDFWriter](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.FE.Mesh.Writer.BDFWriter.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_)

## Properties

### WriteMessage

```csharp theme={null}
public static Action<string> WriteMessage { get; set; }
```

#### Property Value

[Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

## Methods

### FormatDoubleForBDF(double)

```csharp theme={null}
public static string FormatDoubleForBDF(double dValue)
```

#### Parameters

`dValue` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

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

### GetElementTypeName(ElementTypes)

```csharp theme={null}
public static string GetElementTypeName(ElementTypes elementType)
```

#### Parameters

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

#### Returns

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

### WriteBDFFile(MeshFile, string, Action\<TextWriter>, Action\<TextWriter>)

```csharp theme={null}
public static void WriteBDFFile(this MeshFile file, string pathToWrite, Action<TextWriter> actWriteBeforeBulk = null, Action<TextWriter> actWriteExtra = null)
```

#### Parameters

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

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

`actWriteBeforeBulk` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)>

`actWriteExtra` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)>

### WriteBDFFile(MeshFile, Stream, Action\<TextWriter>, Action\<TextWriter>)

```csharp theme={null}
public static void WriteBDFFile(this MeshFile file, Stream stream, Action<TextWriter> actWriteBeforeBulk = null, Action<TextWriter> actWriteExtra = null)
```

#### Parameters

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

`stream` [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream)

`actWriteBeforeBulk` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)>

`actWriteExtra` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)>

### WriteBDFFile(MeshFile, TextWriter, Action\<TextWriter>, Action\<TextWriter>)

```csharp theme={null}
public static void WriteBDFFile(this MeshFile file, TextWriter writer, Action<TextWriter> actWriteBeforeBulk = null, Action<TextWriter> actWriteExtra = null)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

`actWriteBeforeBulk` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)>

`actWriteExtra` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)>

### WriteSingleBDFElement(TextWriter, ref int, string)

```csharp theme={null}
public static void WriteSingleBDFElement(this TextWriter writer, ref int index, string strElement)
```

#### Parameters

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

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

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

### WriteSingleBDFElement(TextWriter, ref int, int)

```csharp theme={null}
public static void WriteSingleBDFElement(this TextWriter writer, ref int index, int nElement)
```

#### Parameters

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

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

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

### WriteSingleBDFElement(TextWriter, ref int, double)

```csharp theme={null}
public static void WriteSingleBDFElement(this TextWriter writer, ref int index, double dElement)
```

#### Parameters

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

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

`dElement` [double](https://learn.microsoft.com/dotnet/api/system.double)

### WriteToBDF(Node, TextWriter)

```csharp theme={null}
public static void WriteToBDF(this Node node, TextWriter writer)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

### WriteToBDF(ISO, TextWriter)

```csharp theme={null}
public static void WriteToBDF(this ISO material, TextWriter writer)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

### WriteToBDF(BeamL, TextWriter)

```csharp theme={null}
public static void WriteToBDF(this BeamL property, TextWriter writer)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

### WriteToBDF(Solid, TextWriter)

```csharp theme={null}
public static void WriteToBDF(this Solid property, TextWriter writer)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

### WriteToBDF(Beam2, TextWriter, MeshFile)

```csharp theme={null}
public static void WriteToBDF(this Beam2 beam, TextWriter writer, MeshFile file)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

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

### WriteToBDF(Element, TextWriter)

```csharp theme={null}
public static void WriteToBDF(this Element element, TextWriter writer)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)

### WriteToBDF(RBE2, TextWriter)

```csharp theme={null}
public static void WriteToBDF(this RBE2 rbe, TextWriter writer)
```

#### Parameters

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

`writer` [TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)
