> ## 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/lib/VM.Models.FE.Mesh.Writer)\
Assembly: VM.Models.FE.Mesh.dll

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

#### Inheritance

object ←
[BDFWriter](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/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/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\<string>

## Methods

### FormatDoubleForBDF(double)

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

#### Parameters

`dValue` double

#### Returns

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/lib/VM.Models.FE.Mesh.ElementTypes.md)

#### Returns

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/lib/VM.Models.FE.Mesh.MeshFile.md)

`pathToWrite` string

`actWriteBeforeBulk` Action\<TextWriter>

`actWriteExtra` Action\<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/lib/VM.Models.FE.Mesh.MeshFile.md)

`stream` Stream

`actWriteBeforeBulk` Action\<TextWriter>

`actWriteExtra` Action\<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/lib/VM.Models.FE.Mesh.MeshFile.md)

`writer` TextWriter

`actWriteBeforeBulk` Action\<TextWriter>

`actWriteExtra` Action\<TextWriter>

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

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

#### Parameters

`writer` TextWriter

`index` int

`strElement` string

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

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

#### Parameters

`writer` TextWriter

`index` int

`nElement` int

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

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

#### Parameters

`writer` TextWriter

`index` int

`dElement` 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/lib/VM.Models.FE.Mesh.Node.md)

`writer` 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/lib/VM.Models.FE.Mesh.Materials.ISO.md)

`writer` 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/lib/VM.Models.FE.Mesh.Properties.BeamL.md)

`writer` 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/lib/VM.Models.FE.Mesh.Properties.Solid.md)

`writer` 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/lib/VM.Models.FE.Mesh.Elements.Beam2.md)

`writer` TextWriter

`file` [MeshFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/lib/VM.Models.FE.Mesh.Elements.Element.md)

`writer` 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/lib/VM.Models.FE.Mesh.Elements.RBE2.md)

`writer` TextWriter
