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

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

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

#### Inheritance

object ←
[SInOutUnitNameConverter](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.SInOutUnitNameConverter.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_)

## Methods

### ControlToSInOutUnitName(string, IDocument)

```csharp theme={null}
public static UnitName ControlToSInOutUnitName(string sInOutUnitName, IDocument document)
```

#### Parameters

`sInOutUnitName` string

`document` [IDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IDocument.md)

#### Returns

[UnitName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.UnitName.md)

### GetSInOutTypeName(UnitName, string)

```csharp theme={null}
public static string GetSInOutTypeName(UnitName sInOutUnitName, string strCausality)
```

#### Parameters

`sInOutUnitName` [UnitName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.UnitName.md)

`strCausality` string

#### Returns

string

### GetSInOutUnitName(UnitName, IDocument)

```csharp theme={null}
public static string GetSInOutUnitName(UnitName sInOutUnitName, IDocument document)
```

#### Parameters

`sInOutUnitName` [UnitName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.UnitName.md)

`document` [IDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IDocument.md)

#### Returns

string

### GetSInOutUnitNames(IDocument, string)

```csharp theme={null}
public static object GetSInOutUnitNames(IDocument document, string type)
```

#### Parameters

`document` [IDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IDocument.md)

`type` string

#### Returns

object

### GetUnitType(UnitName)

Convert unit type to number

```csharp theme={null}
public static uint GetUnitType(UnitName enUnitName)
```

#### Parameters

`enUnitName` [UnitName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.UnitName.md)

unit type

#### Returns

uint

The number

#### Exceptions

InvalidOperationException

### SInOutUnitNameToControl(string, IDocument)

```csharp theme={null}
public static string SInOutUnitNameToControl(string sInOutUnitName, IDocument document)
```

#### Parameters

`sInOutUnitName` string

`document` [IDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IDocument.md)

#### Returns

string
