    

 ## On this page

  

 

 # Class BDFWriter

 Last update: 09.03.2026 

<a id="VM_Models_FE_Mesh_Writer_BDFWriter"></a>

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 ← [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

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteMessage"></a> WriteMessage

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

```

#### Property Value

Action&lt;string&gt;

## Methods

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_FormatDoubleForBDF_System_Double_"></a> FormatDoubleForBDF(double)

```csharp
public static string FormatDoubleForBDF(double dValue)

```

#### Parameters

`dValue` double

#### Returns

string

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_GetElementTypeName_VM_Models_FE_Mesh_ElementTypes_"></a> GetElementTypeName(ElementTypes)

```csharp
public static string GetElementTypeName(ElementTypes elementType)

```

#### Parameters

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

#### Returns

string

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteBDFFile_VM_Models_FE_Mesh_MeshFile_System_String_System_Action_System_IO_TextWriter__System_Action_System_IO_TextWriter__"></a> 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

`actWriteBeforeBulk` Action&lt;TextWriter&gt;

`actWriteExtra` Action&lt;TextWriter&gt;

### <a id="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__"></a> 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

`actWriteBeforeBulk` Action&lt;TextWriter&gt;

`actWriteExtra` Action&lt;TextWriter&gt;

### <a id="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__"></a> 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

`actWriteBeforeBulk` Action&lt;TextWriter&gt;

`actWriteExtra` Action&lt;TextWriter&gt;

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteSingleBDFElement_System_IO_TextWriter_System_Int32__System_String_"></a> WriteSingleBDFElement(TextWriter, ref int, string)

```csharp
public static void WriteSingleBDFElement(this TextWriter writer, ref int index, string strElement)

```

#### Parameters

`writer` TextWriter

`index` int

`strElement` string

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteSingleBDFElement_System_IO_TextWriter_System_Int32__System_Int32_"></a> WriteSingleBDFElement(TextWriter, ref int, int)

```csharp
public static void WriteSingleBDFElement(this TextWriter writer, ref int index, int nElement)

```

#### Parameters

`writer` TextWriter

`index` int

`nElement` int

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteSingleBDFElement_System_IO_TextWriter_System_Int32__System_Double_"></a> WriteSingleBDFElement(TextWriter, ref int, double)

```csharp
public static void WriteSingleBDFElement(this TextWriter writer, ref int index, double dElement)

```

#### Parameters

`writer` TextWriter

`index` int

`dElement` double

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Node_System_IO_TextWriter_"></a> WriteToBDF(Node, TextWriter)

```csharp
public static void WriteToBDF(this Node node, TextWriter writer)

```

#### Parameters

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

`writer` TextWriter

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Materials_ISO_System_IO_TextWriter_"></a> 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

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Properties_BeamL_System_IO_TextWriter_"></a> 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

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Properties_Solid_System_IO_TextWriter_"></a> 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

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Elements_Beam2_System_IO_TextWriter_VM_Models_FE_Mesh_MeshFile_"></a> 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

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

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Elements_Element_System_IO_TextWriter_"></a> 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

### <a id="VM_Models_FE_Mesh_Writer_BDFWriter_WriteToBDF_VM_Models_FE_Mesh_Elements_RBE2_System_IO_TextWriter_"></a> 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