Skip to main content

Utils class

No description yet.

public class Utils

Namespace: EDP · Assembly: Altium.SDK

Fields​

NameTypeValue
AltiumSystemPath (static)string

Methods​

MethodReturnsDescription
CoordToMilsdouble
CoordToMilStrstring
CoordToMMsdouble
CoordToMMStrstring
CoordUnitToStringstring
CreateEDMS_ParameterValueConvertorFactoryIParameterValueConvertorFactory
CreateEDMS_RawSearchBaseOptionsIEDM_RawSearchBaseOptions
CreateEDMS_RawSearchOptionsIEDM_RawSearchOptions
CreateEDMS_SearchOptionsIEDM_SearchOptions
DeEscapingStringsIEnumerable<string>
DegreesToRadiansdouble
EscapingStringsstring
GetAFSManagerIEDMS_AFSManager
GetBomManagerFactoryIBomManagerFactory
GetComponentSearchIComponentSearch
GetDeviceSheetManagerIDeviceSheetManager
GetDXPServerManagerIEDMS_DXPServerManager
GetEDMS_VaultFileCacheIEDMS_VaultFileCache
GetGeneratorUtilsIOutputGeneratorUtils
GetPartCatalogIPartCatalog2
GetPartChoicesClientIPartChoicesClient
GetPartChoicesManagerIPartChoicesManager
GetPartSearchManagerIPartSearchManager
GetPartSearchServerIPartSearchServer
GetProjectDialogsFactoryIProjectDialogsFactory
GetReleaseManagerIReleaseManager
GetSupplierManagerISupplierManager
GetVaultManagerIEDMS_VaultManager
IsConnectedToServerbool
IsConnectedToWorkspacebool
IsExtendedRevisionParameterTypesSupportedbool
IsFeatureAllowedbool
IsHarnessDesignAvailablebool
IsHarnessDesignViewOnlybool
IsHarnessLibrarySupportedbool
IsSystemLevelDesignViewOnlybool
LayerToStringstring
LoadIntegratedLibraryManagerIIntegratedLibraryManager
LoadModelTypeManagerIModelTypeManager
LoginToWorkspacevoid
MetricStringbool
MilAccuracydouble
MilsToCoordint
MilsToRealCoorddouble
MMAccuracydouble
MMsToCoordint
MMsToRealCoorddouble
RadiansToDegreesdouble
Rounddouble
StringToCoordUnitvoid
TrimZeroesstring
TryModifyPartChoicesbool

CoordToMils​

No description yet.

static double CoordToMils(int argC);
ParameterTypePassing
argCintvalue

Returns: double

CoordToMilStr​

No description yet.

static string CoordToMilStr(int argN);
ParameterTypePassing
argNintvalue

Returns: string

CoordToMMs​

No description yet.

static double CoordToMMs(int argC);
ParameterTypePassing
argCintvalue

Returns: double

CoordToMMStr​

No description yet.

static string CoordToMMStr(int argN);
ParameterTypePassing
argNintvalue

Returns: string

CoordUnitToString​

No description yet.

static string CoordUnitToString(int argC, TUnit argUnit);
ParameterTypePassing
argCintvalue
argUnitTUnitvalue

Returns: string

CreateEDMS_ParameterValueConvertorFactory​

No description yet.

static IParameterValueConvertorFactory CreateEDMS_ParameterValueConvertorFactory();

Returns: IParameterValueConvertorFactory

CreateEDMS_RawSearchBaseOptions​

No description yet.

static IEDM_RawSearchBaseOptions CreateEDMS_RawSearchBaseOptions();

Returns: IEDM_RawSearchBaseOptions

CreateEDMS_RawSearchOptions​

No description yet.

static IEDM_RawSearchOptions CreateEDMS_RawSearchOptions();

Returns: IEDM_RawSearchOptions

CreateEDMS_SearchOptions​

No description yet.

static IEDM_SearchOptions CreateEDMS_SearchOptions();

Returns: IEDM_SearchOptions

DeEscapingStrings​

No description yet.

static IEnumerable<string> DeEscapingStrings(string escapedString);
ParameterTypePassing
escapedStringstringvalue

Returns: IEnumerable<string>

DegreesToRadians​

No description yet.

static double DegreesToRadians(double argAngle);
ParameterTypePassing
argAngledoublevalue

Returns: double

EscapingStrings​

No description yet.

static string EscapingStrings(IEnumerable<string> strings);
ParameterTypePassing
stringsIEnumerable<string>value

Returns: string

GetAFSManager​

No description yet.

static IEDMS_AFSManager GetAFSManager();

Returns: IEDMS_AFSManager

GetBomManagerFactory​

No description yet.

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

Overload 1: static IBomManagerFactory GetBomManagerFactory(IClient client)

ParameterTypePassing
clientIClientvalue

Returns IBomManagerFactory.

Overload 2: static IBomManagerFactory GetBomManagerFactory()

Returns IBomManagerFactory.

GetComponentSearch​

No description yet.

static IComponentSearch GetComponentSearch();

Returns: IComponentSearch

GetDeviceSheetManager​

No description yet.

static IDeviceSheetManager GetDeviceSheetManager();

Returns: IDeviceSheetManager

GetDXPServerManager​

No description yet.

static IEDMS_DXPServerManager GetDXPServerManager();

Returns: IEDMS_DXPServerManager

GetEDMS_VaultFileCache​

No description yet.

static IEDMS_VaultFileCache GetEDMS_VaultFileCache();

Returns: IEDMS_VaultFileCache

GetGeneratorUtils​

No description yet.

static IOutputGeneratorUtils GetGeneratorUtils();

Returns: IOutputGeneratorUtils

GetPartCatalog​

No description yet.

static IPartCatalog2 GetPartCatalog(string vaultGuid);
ParameterTypePassing
vaultGuidstringvalue

Returns: IPartCatalog2

GetPartChoicesClient​

No description yet.

static IPartChoicesClient GetPartChoicesClient(string vaultGuid);
ParameterTypePassing
vaultGuidstringvalue

Returns: IPartChoicesClient

GetPartChoicesManager​

No description yet.

static IPartChoicesManager GetPartChoicesManager();

Returns: IPartChoicesManager

GetPartSearchManager​

No description yet.

static IPartSearchManager GetPartSearchManager();

Returns: IPartSearchManager

GetPartSearchServer​

No description yet.

static IPartSearchServer GetPartSearchServer();

Returns: IPartSearchServer

GetProjectDialogsFactory​

No description yet.

static IProjectDialogsFactory GetProjectDialogsFactory();

Returns: IProjectDialogsFactory

GetReleaseManager​

No description yet.

static IReleaseManager GetReleaseManager();

Returns: IReleaseManager

GetSupplierManager​

No description yet.

static ISupplierManager GetSupplierManager();

Returns: ISupplierManager

GetVaultManager​

No description yet.

static IEDMS_VaultManager GetVaultManager();

Returns: IEDMS_VaultManager

IsConnectedToServer​

No description yet.

static bool IsConnectedToServer();

Returns: bool

IsConnectedToWorkspace​

No description yet.

static bool IsConnectedToWorkspace();

Returns: bool

IsExtendedRevisionParameterTypesSupported​

No description yet.

static bool IsExtendedRevisionParameterTypesSupported(IEDMS_Vault vault);
ParameterTypePassing
vaultIEDMS_Vaultvalue

Returns: bool

IsFeatureAllowed​

No description yet.

static bool IsFeatureAllowed(string featureName);
ParameterTypePassing
featureNamestringvalue

Returns: bool

IsHarnessDesignAvailable​

No description yet.

static bool IsHarnessDesignAvailable();

Returns: bool

IsHarnessDesignViewOnly​

No description yet.

static bool IsHarnessDesignViewOnly();

Returns: bool

IsHarnessLibrarySupported​

No description yet.

static bool IsHarnessLibrarySupported(IEDMS_Vault vault);
ParameterTypePassing
vaultIEDMS_Vaultvalue

Returns: bool

IsSystemLevelDesignViewOnly​

No description yet.

static bool IsSystemLevelDesignViewOnly();

Returns: bool

LayerToString​

No description yet.

static string LayerToString(V7_Layer argLayer);
ParameterTypePassing
argLayerV7_Layervalue

Returns: string

LoadIntegratedLibraryManager​

No description yet.

static IIntegratedLibraryManager LoadIntegratedLibraryManager();

Returns: IIntegratedLibraryManager

LoadModelTypeManager​

No description yet.

static IModelTypeManager LoadModelTypeManager();

Returns: IModelTypeManager

LoginToWorkspace​

No description yet.

static void LoginToWorkspace(string workspaceId);
ParameterTypePassing
workspaceIdstringvalue

Returns: nothing (void)

MetricString​

No description yet.

static bool MetricString(string argStr, TUnit defaultUnits);
ParameterTypePassing
argStrstringvalue
defaultUnitsTUnitvalue

Returns: bool

MilAccuracy​

No description yet.

static double MilAccuracy(double d);
ParameterTypePassing
ddoublevalue

Returns: double

MilsToCoord​

No description yet.

static int MilsToCoord(double argM);
ParameterTypePassing
argMdoublevalue

Returns: int

MilsToRealCoord​

No description yet.

static double MilsToRealCoord(double argM);
ParameterTypePassing
argMdoublevalue

Returns: double

MMAccuracy​

No description yet.

static double MMAccuracy(double d);
ParameterTypePassing
ddoublevalue

Returns: double

MMsToCoord​

No description yet.

static int MMsToCoord(double argM);
ParameterTypePassing
argMdoublevalue

Returns: int

MMsToRealCoord​

No description yet.

static double MMsToRealCoord(double argM);
ParameterTypePassing
argMdoublevalue

Returns: double

RadiansToDegrees​

No description yet.

static double RadiansToDegrees(double argR);
ParameterTypePassing
argRdoublevalue

Returns: double

Round​

No description yet.

static double Round(double num);
ParameterTypePassing
numdoublevalue

Returns: double

StringToCoordUnit​

No description yet.

static void StringToCoordUnit(string argStr, out int argCoord, ref TUnit argUnit);
ParameterTypePassing
argStrstringvalue
argCoordintout
argUnitTUnitref

Returns: nothing (void)

TrimZeroes​

No description yet.

static string TrimZeroes(string argStr);
ParameterTypePassing
argStrstringvalue

Returns: string

TryModifyPartChoices​

No description yet.

static bool TryModifyPartChoices(IPartChoicesClient client, IPartChoice2List partChoices, out string errorMessage);
ParameterTypePassing
clientIPartChoicesClientvalue
partChoicesIPartChoice2Listvalue
errorMessagestringout

Returns: bool