
# Utils class

*No description yet.*

```csharp
public class Utils
```

**Namespace:** EDP · **Assembly:** Altium.SDK

## Fields

| Name | Type | Value |
| --- | --- | --- |
| `AltiumSystemPath` (static) | `string` |  |

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [CoordToMils](#coordtomils) | `double` |  |
| [CoordToMilStr](#coordtomilstr) | `string` |  |
| [CoordToMMs](#coordtomms) | `double` |  |
| [CoordToMMStr](#coordtommstr) | `string` |  |
| [CoordUnitToString](#coordunittostring) | `string` |  |
| [CreateEDMS_ParameterValueConvertorFactory](#createedms_parametervalueconvertorfactory) | [IParameterValueConvertorFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IParameterValueConvertorFactory.md) |  |
| [CreateEDMS_RawSearchBaseOptions](#createedms_rawsearchbaseoptions) | [IEDM_RawSearchBaseOptions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDM_RawSearchBaseOptions.md) |  |
| [CreateEDMS_RawSearchOptions](#createedms_rawsearchoptions) | [IEDM_RawSearchOptions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDM_RawSearchOptions.md) |  |
| [CreateEDMS_SearchOptions](#createedms_searchoptions) | [IEDM_SearchOptions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDM_SearchOptions.md) |  |
| [DeEscapingStrings](#deescapingstrings) | `IEnumerable<string>` |  |
| [DegreesToRadians](#degreestoradians) | `double` |  |
| [EscapingStrings](#escapingstrings) | `string` |  |
| [GetAFSManager](#getafsmanager) | [IEDMS_AFSManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_AFSManager.md) |  |
| [GetBomManagerFactory](#getbommanagerfactory) | [IBomManagerFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IBomManagerFactory.md) |  |
| [GetComponentSearch](#getcomponentsearch) | [IComponentSearch](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IComponentSearch.md) |  |
| [GetDeviceSheetManager](#getdevicesheetmanager) | [IDeviceSheetManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IDeviceSheetManager.md) |  |
| [GetDXPServerManager](#getdxpservermanager) | [IEDMS_DXPServerManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_DXPServerManager.md) |  |
| [GetEDMS_VaultFileCache](#getedms_vaultfilecache) | [IEDMS_VaultFileCache](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_VaultFileCache.md) |  |
| [GetGeneratorUtils](#getgeneratorutils) | [IOutputGeneratorUtils](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IOutputGeneratorUtils.md) |  |
| [GetPartCatalog](#getpartcatalog) | [IPartCatalog2](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartCatalog2.md) |  |
| [GetPartChoicesClient](#getpartchoicesclient) | [IPartChoicesClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartChoicesClient.md) |  |
| [GetPartChoicesManager](#getpartchoicesmanager) | [IPartChoicesManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPartChoicesManager.md) |  |
| [GetPartSearchManager](#getpartsearchmanager) | [IPartSearchManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartSearchManager.md) |  |
| [GetPartSearchServer](#getpartsearchserver) | [IPartSearchServer](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartSearchServer.md) |  |
| [GetProjectDialogsFactory](#getprojectdialogsfactory) | [IProjectDialogsFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IProjectDialogsFactory.md) |  |
| [GetReleaseManager](#getreleasemanager) | [IReleaseManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IReleaseManager.md) |  |
| [GetSupplierManager](#getsuppliermanager) | [ISupplierManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISupplierManager.md) |  |
| [GetVaultManager](#getvaultmanager) | [IEDMS_VaultManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_VaultManager.md) |  |
| [IsConnectedToServer](#isconnectedtoserver) | `bool` |  |
| [IsConnectedToWorkspace](#isconnectedtoworkspace) | `bool` |  |
| [IsExtendedRevisionParameterTypesSupported](#isextendedrevisionparametertypessupported) | `bool` |  |
| [IsFeatureAllowed](#isfeatureallowed) | `bool` |  |
| [IsHarnessDesignAvailable](#isharnessdesignavailable) | `bool` |  |
| [IsHarnessDesignViewOnly](#isharnessdesignviewonly) | `bool` |  |
| [IsHarnessLibrarySupported](#isharnesslibrarysupported) | `bool` |  |
| [IsSystemLevelDesignViewOnly](#issystemleveldesignviewonly) | `bool` |  |
| [LayerToString](#layertostring) | `string` |  |
| [LoadIntegratedLibraryManager](#loadintegratedlibrarymanager) | [IIntegratedLibraryManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IIntegratedLibraryManager.md) |  |
| [LoadModelTypeManager](#loadmodeltypemanager) | [IModelTypeManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IModelTypeManager.md) |  |
| [LoginToWorkspace](#logintoworkspace) | `void` |  |
| [MetricString](#metricstring) | `bool` |  |
| [MilAccuracy](#milaccuracy) | `double` |  |
| [MilsToCoord](#milstocoord) | `int` |  |
| [MilsToRealCoord](#milstorealcoord) | `double` |  |
| [MMAccuracy](#mmaccuracy) | `double` |  |
| [MMsToCoord](#mmstocoord) | `int` |  |
| [MMsToRealCoord](#mmstorealcoord) | `double` |  |
| [RadiansToDegrees](#radianstodegrees) | `double` |  |
| [Round](#round) | `double` |  |
| [StringToCoordUnit](#stringtocoordunit) | `void` |  |
| [TrimZeroes](#trimzeroes) | `string` |  |
| [TryModifyPartChoices](#trymodifypartchoices) | `bool` |  |

### CoordToMils

*No description yet.*

```csharp
static double CoordToMils(int argC);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argC` | `int` | value |

**Returns:** `double`

### CoordToMilStr

*No description yet.*

```csharp
static string CoordToMilStr(int argN);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argN` | `int` | value |

**Returns:** `string`

### CoordToMMs

*No description yet.*

```csharp
static double CoordToMMs(int argC);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argC` | `int` | value |

**Returns:** `double`

### CoordToMMStr

*No description yet.*

```csharp
static string CoordToMMStr(int argN);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argN` | `int` | value |

**Returns:** `string`

### CoordUnitToString

*No description yet.*

```csharp
static string CoordUnitToString(int argC, TUnit argUnit);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argC` | `int` | value |
| `argUnit` | [TUnit](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TUnit.md) | value |

**Returns:** `string`

### CreateEDMS_ParameterValueConvertorFactory

*No description yet.*

```csharp
static IParameterValueConvertorFactory CreateEDMS_ParameterValueConvertorFactory();
```

**Returns:** [IParameterValueConvertorFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IParameterValueConvertorFactory.md)

### CreateEDMS_RawSearchBaseOptions

*No description yet.*

```csharp
static IEDM_RawSearchBaseOptions CreateEDMS_RawSearchBaseOptions();
```

**Returns:** [IEDM_RawSearchBaseOptions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDM_RawSearchBaseOptions.md)

### CreateEDMS_RawSearchOptions

*No description yet.*

```csharp
static IEDM_RawSearchOptions CreateEDMS_RawSearchOptions();
```

**Returns:** [IEDM_RawSearchOptions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDM_RawSearchOptions.md)

### CreateEDMS_SearchOptions

*No description yet.*

```csharp
static IEDM_SearchOptions CreateEDMS_SearchOptions();
```

**Returns:** [IEDM_SearchOptions](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDM_SearchOptions.md)

### DeEscapingStrings

*No description yet.*

```csharp
static IEnumerable<string> DeEscapingStrings(string escapedString);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `escapedString` | `string` | value |

**Returns:** `IEnumerable<string>`

### DegreesToRadians

*No description yet.*

```csharp
static double DegreesToRadians(double argAngle);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argAngle` | `double` | value |

**Returns:** `double`

### EscapingStrings

*No description yet.*

```csharp
static string EscapingStrings(IEnumerable<string> strings);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `strings` | `IEnumerable<string>` | value |

**Returns:** `string`

### GetAFSManager

*No description yet.*

```csharp
static IEDMS_AFSManager GetAFSManager();
```

**Returns:** [IEDMS_AFSManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_AFSManager.md)

### GetBomManagerFactory

*No description yet.*

```csharp
static IBomManagerFactory GetBomManagerFactory(IClient client);
static IBomManagerFactory GetBomManagerFactory();
```

**Overload 1:** `static IBomManagerFactory GetBomManagerFactory(IClient client)`

| Parameter | Type | Passing |
| --- | --- | --- |
| `client` | [IClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md) | value |

Returns [IBomManagerFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IBomManagerFactory.md).

**Overload 2:** `static IBomManagerFactory GetBomManagerFactory()`

Returns [IBomManagerFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IBomManagerFactory.md).

### GetComponentSearch

*No description yet.*

```csharp
static IComponentSearch GetComponentSearch();
```

**Returns:** [IComponentSearch](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IComponentSearch.md)

### GetDeviceSheetManager

*No description yet.*

```csharp
static IDeviceSheetManager GetDeviceSheetManager();
```

**Returns:** [IDeviceSheetManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IDeviceSheetManager.md)

### GetDXPServerManager

*No description yet.*

```csharp
static IEDMS_DXPServerManager GetDXPServerManager();
```

**Returns:** [IEDMS_DXPServerManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_DXPServerManager.md)

### GetEDMS_VaultFileCache

*No description yet.*

```csharp
static IEDMS_VaultFileCache GetEDMS_VaultFileCache();
```

**Returns:** [IEDMS_VaultFileCache](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_VaultFileCache.md)

### GetGeneratorUtils

*No description yet.*

```csharp
static IOutputGeneratorUtils GetGeneratorUtils();
```

**Returns:** [IOutputGeneratorUtils](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IOutputGeneratorUtils.md)

### GetPartCatalog

*No description yet.*

```csharp
static IPartCatalog2 GetPartCatalog(string vaultGuid);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `vaultGuid` | `string` | value |

**Returns:** [IPartCatalog2](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartCatalog2.md)

### GetPartChoicesClient

*No description yet.*

```csharp
static IPartChoicesClient GetPartChoicesClient(string vaultGuid);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `vaultGuid` | `string` | value |

**Returns:** [IPartChoicesClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartChoicesClient.md)

### GetPartChoicesManager

*No description yet.*

```csharp
static IPartChoicesManager GetPartChoicesManager();
```

**Returns:** [IPartChoicesManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPartChoicesManager.md)

### GetPartSearchManager

*No description yet.*

```csharp
static IPartSearchManager GetPartSearchManager();
```

**Returns:** [IPartSearchManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartSearchManager.md)

### GetPartSearchServer

*No description yet.*

```csharp
static IPartSearchServer GetPartSearchServer();
```

**Returns:** [IPartSearchServer](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartSearchServer.md)

### GetProjectDialogsFactory

*No description yet.*

```csharp
static IProjectDialogsFactory GetProjectDialogsFactory();
```

**Returns:** [IProjectDialogsFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IProjectDialogsFactory.md)

### GetReleaseManager

*No description yet.*

```csharp
static IReleaseManager GetReleaseManager();
```

**Returns:** [IReleaseManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IReleaseManager.md)

### GetSupplierManager

*No description yet.*

```csharp
static ISupplierManager GetSupplierManager();
```

**Returns:** [ISupplierManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISupplierManager.md)

### GetVaultManager

*No description yet.*

```csharp
static IEDMS_VaultManager GetVaultManager();
```

**Returns:** [IEDMS_VaultManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_VaultManager.md)

### IsConnectedToServer

*No description yet.*

```csharp
static bool IsConnectedToServer();
```

**Returns:** `bool`

### IsConnectedToWorkspace

*No description yet.*

```csharp
static bool IsConnectedToWorkspace();
```

**Returns:** `bool`

### IsExtendedRevisionParameterTypesSupported

*No description yet.*

```csharp
static bool IsExtendedRevisionParameterTypesSupported(IEDMS_Vault vault);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `vault` | [IEDMS_Vault](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_Vault.md) | value |

**Returns:** `bool`

### IsFeatureAllowed

*No description yet.*

```csharp
static bool IsFeatureAllowed(string featureName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `featureName` | `string` | value |

**Returns:** `bool`

### IsHarnessDesignAvailable

*No description yet.*

```csharp
static bool IsHarnessDesignAvailable();
```

**Returns:** `bool`

### IsHarnessDesignViewOnly

*No description yet.*

```csharp
static bool IsHarnessDesignViewOnly();
```

**Returns:** `bool`

### IsHarnessLibrarySupported

*No description yet.*

```csharp
static bool IsHarnessLibrarySupported(IEDMS_Vault vault);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `vault` | [IEDMS_Vault](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMS_Vault.md) | value |

**Returns:** `bool`

### IsSystemLevelDesignViewOnly

*No description yet.*

```csharp
static bool IsSystemLevelDesignViewOnly();
```

**Returns:** `bool`

### LayerToString

*No description yet.*

```csharp
static string LayerToString(V7_Layer argLayer);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argLayer` | [V7_Layer](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/V7_Layer.md) | value |

**Returns:** `string`

### LoadIntegratedLibraryManager

*No description yet.*

```csharp
static IIntegratedLibraryManager LoadIntegratedLibraryManager();
```

**Returns:** [IIntegratedLibraryManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IIntegratedLibraryManager.md)

### LoadModelTypeManager

*No description yet.*

```csharp
static IModelTypeManager LoadModelTypeManager();
```

**Returns:** [IModelTypeManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IModelTypeManager.md)

### LoginToWorkspace

*No description yet.*

```csharp
static void LoginToWorkspace(string workspaceId);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `workspaceId` | `string` | value |

**Returns:** nothing (`void`)

### MetricString

*No description yet.*

```csharp
static bool MetricString(string argStr, TUnit defaultUnits);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argStr` | `string` | value |
| `defaultUnits` | [TUnit](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TUnit.md) | value |

**Returns:** `bool`

### MilAccuracy

*No description yet.*

```csharp
static double MilAccuracy(double d);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `d` | `double` | value |

**Returns:** `double`

### MilsToCoord

*No description yet.*

```csharp
static int MilsToCoord(double argM);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argM` | `double` | value |

**Returns:** `int`

### MilsToRealCoord

*No description yet.*

```csharp
static double MilsToRealCoord(double argM);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argM` | `double` | value |

**Returns:** `double`

### MMAccuracy

*No description yet.*

```csharp
static double MMAccuracy(double d);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `d` | `double` | value |

**Returns:** `double`

### MMsToCoord

*No description yet.*

```csharp
static int MMsToCoord(double argM);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argM` | `double` | value |

**Returns:** `int`

### MMsToRealCoord

*No description yet.*

```csharp
static double MMsToRealCoord(double argM);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argM` | `double` | value |

**Returns:** `double`

### RadiansToDegrees

*No description yet.*

```csharp
static double RadiansToDegrees(double argR);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argR` | `double` | value |

**Returns:** `double`

### Round

*No description yet.*

```csharp
static double Round(double num);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `num` | `double` | value |

**Returns:** `double`

### StringToCoordUnit

*No description yet.*

```csharp
static void StringToCoordUnit(string argStr, out int argCoord, ref TUnit argUnit);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argStr` | `string` | value |
| `argCoord` | `int` | out |
| `argUnit` | [TUnit](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TUnit.md) | ref |

**Returns:** nothing (`void`)

### TrimZeroes

*No description yet.*

```csharp
static string TrimZeroes(string argStr);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argStr` | `string` | value |

**Returns:** `string`

### TryModifyPartChoices

*No description yet.*

```csharp
static bool TryModifyPartChoices(IPartChoicesClient client, IPartChoice2List partChoices, out string errorMessage);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `client` | [IPartChoicesClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartChoicesClient.md) | value |
| `partChoices` | [IPartChoice2List](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPartChoice2List.md) | value |
| `errorMessage` | `string` | out |

**Returns:** `bool`
