    

 ## On this page

  

 

 # Class BDFWriter

 Last update: 16.07.2025 

Namespace: [VM.Models.FE.Mesh.Writer](VM.Models.FE.Mesh.Writer.md)  
Assembly: VM.Models.FE.Mesh.dll

```csharp
public static class BDFWriter

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [BDFWriter](VM.Models.FE.Mesh.Writer.BDFWriter.md)

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

## Properties

### WriteMessage

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

```

#### Property Value

[Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

## Methods

### FormatDoubleForBDF(double)

```csharp
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
public static string GetElementTypeName(ElementTypes elementType)

```

#### Parameters

`elementType` [ElementTypes](VM.Models.FE.Mesh.ElementTypes.md)

#### Returns

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

### WriteBDFFile(MeshFile, string, Action&lt;TextWriter&gt;, Action&lt;TextWriter&gt;)

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

```

#### Parameters

`file` [MeshFile](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)&lt;[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)&gt;

`actWriteExtra` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)&gt;

### WriteBDFFile(MeshFile, Stream, Action&lt;TextWriter&gt;, Action&lt;TextWriter&gt;)

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

```

#### Parameters

`file` [MeshFile](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)&lt;[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)&gt;

`actWriteExtra` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)&gt;

### WriteBDFFile(MeshFile, TextWriter, Action&lt;TextWriter&gt;, Action&lt;TextWriter&gt;)

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

```

#### Parameters

`file` [MeshFile](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)&lt;[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)&gt;

`actWriteExtra` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[TextWriter](https://learn.microsoft.com/dotnet/api/system.io.textwriter)&gt;

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

```csharp
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
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
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
public static void WriteToBDF(this Node node, TextWriter writer)

```

#### Parameters

`node` [Node](VM.Models.FE.Mesh.Node.md)

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

### WriteToBDF(ISO, TextWriter)

```csharp
public static void WriteToBDF(this ISO material, TextWriter writer)

```

#### Parameters

`material` [ISO](VM.Models.FE.Mesh.Materials.ISO.md)

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

### WriteToBDF(BeamL, TextWriter)

```csharp
public static void WriteToBDF(this BeamL property, TextWriter writer)

```

#### Parameters

`property` [BeamL](VM.Models.FE.Mesh.Properties.BeamL.md)

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

### WriteToBDF(Solid, TextWriter)

```csharp
public static void WriteToBDF(this Solid property, TextWriter writer)

```

#### Parameters

`property` [Solid](VM.Models.FE.Mesh.Properties.Solid.md)

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

### WriteToBDF(Beam2, TextWriter, MeshFile)

```csharp
public static void WriteToBDF(this Beam2 beam, TextWriter writer, MeshFile file)

```

#### Parameters

`beam` [Beam2](VM.Models.FE.Mesh.Elements.Beam2.md)

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

`file` [MeshFile](VM.Models.FE.Mesh.MeshFile.md)

### WriteToBDF(Element, TextWriter)

```csharp
public static void WriteToBDF(this Element element, TextWriter writer)

```

#### Parameters

`element` [Element](VM.Models.FE.Mesh.Elements.Element.md)

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

### WriteToBDF(RBE2, TextWriter)

```csharp
public static void WriteToBDF(this RBE2 rbe, TextWriter writer)

```

#### Parameters

`rbe` [RBE2](VM.Models.FE.Mesh.Elements.RBE2.md)

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