Skip to main content
View as Markdown

IServerRecord interface

This interface extracts the servers installation files information from the \System folder which has a list of server installation files. That is each server installation file (with an INS extension) correspond to a IServerRecord itnerface.

public interface IServerRecord

Namespace: DXP · Assembly: Altium.SDK.Interfaces

Remarks​

Since this IServerRecord interface is inside the Client object, invoke IClient.GetServerRecordCount to get the number of server installation files, and then assign the result of IClient.GetServerRecord to a IServerRecord variable where you can retrieve data associated with an installation file.

To find more information about each server module installed in Altium Designer, invoke the IClient.GetServerModule interface.

Methods​

MethodReturnsDescription
GetCommandIServerProcessThe method returns the IServerProcess interface.
GetCommandCountintThe method returns the number of commands (Process launchers) this server supports.
GetCopyRightstringThe method returns the copyright string.
GetDatestringThe method returns the date string associated with the server installation file.
GetDescriptionstringThe method returns the description string.
GetDocumentFiltervoid
GetDocumentFilterCountint
GetExePathstringThe method returns the path to the server file.
GetGeneralInfostringThe method returns the general info string for the server record associated with a server.
GetInsPathstringThe method returns the path to the installation file.
GetIsDocumentWizardbool
GetNamestringThe method returns the name of the server.
GetPanelInfoIServerPanelInfoThe method returns the indexed panel information.
GetPanelInfoByNameIServerPanelInfoThe method returns the panel information interface by the panel name.
GetPanelInfoCountintThe method returns the number of panels used for the server module.
GetRCSFilePathstringThe method returns the path to the resources file.
GetServerFileExistboolThe method returns the Boolean value whether the server file (with a DLL) exists or not.
GetSupportsDDBReadbool
GetSupportsDDBWritebool
GetSystemExtensionboolThe method returns the file system extension string.
GetVersionstringThe method returns the version string associated with the server installation file.
GetWindowKindIServerWindowKindThe method returns the IServerWindowKind interface.
GetWindowKindByNameIServerWindowKindThe method returns the IServerWindowKind interface depending on the DocumentKind Name parameter.
GetWindowKindCountintThe method returns the number of document kinds the server supports.

GetCommand​

The method returns the IServerProcess interface. Used in conjunction with the GetCommandCount method.

IServerProcess GetCommand(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IServerProcess

Extension method of IServerRecordHelper (using DXP;).

GetCommandCount​

The method returns the number of commands (Process launchers) this server supports. Used in conjunction with the GetCommand method

int GetCommandCount();

Returns: int

GetCopyRight​

The method returns the copyright string.

string GetCopyRight();

Returns: string

GetDate​

The method returns the date string associated with the server installation file.

string GetDate();

Returns: string

GetDescription​

The method returns the description string.

string GetDescription();

Returns: string

GetDocumentFilter​

No description yet.

void GetDocumentFilter(int argIndex, out string argKind, out string argFilter);
ParameterTypePassing
argIndexintvalue
argKindstringout
argFilterstringout

Returns: nothing (void)

GetDocumentFilterCount​

No description yet.

int GetDocumentFilterCount();

Returns: int

GetExePath​

The method returns the path to the server file.

string GetExePath();

Returns: string

GetGeneralInfo​

The method returns the general info string for the server record associated with a server.

string GetGeneralInfo();

Returns: string

GetInsPath​

The method returns the path to the installation file.

string GetInsPath();

Returns: string

GetIsDocumentWizard​

No description yet.

bool GetIsDocumentWizard();

Returns: bool

GetName​

The method returns the name of the server.

string GetName();

Returns: string

GetPanelInfo​

The method returns the indexed panel information. This is to be used in conjunction with the GetPanelInfoCount method.

IServerPanelInfo GetPanelInfo(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IServerPanelInfo

Extension method of IServerRecordHelper (using DXP;).

GetPanelInfoByName​

The method returns the panel information interface by the panel name.

IServerPanelInfo GetPanelInfoByName(string argName);
ParameterTypePassing
argNamestringvalue

Returns: IServerPanelInfo

Extension method of IServerRecordHelper (using DXP;).

GetPanelInfoCount​

The method returns the number of panels used for the server module. This is to be used in conjunction with the GetPanelInfo method.

int GetPanelInfoCount();

Returns: int

GetRCSFilePath​

The method returns the path to the resources file.

string GetRCSFilePath();

Returns: string

GetServerFileExist​

The method returns the Boolean value whether the server file (with a DLL) exists or not.

bool GetServerFileExist();

Returns: bool

GetSupportsDDBRead​

No description yet.

bool GetSupportsDDBRead();

Returns: bool

GetSupportsDDBWrite​

No description yet.

bool GetSupportsDDBWrite();

Returns: bool

GetSystemExtension​

The method returns the file system extension string.

bool GetSystemExtension();

Returns: bool

GetVersion​

The method returns the version string associated with the server installation file.

string GetVersion();

Returns: string

Example: Find the version of the Client server.

using DXP;

IClient client = DXP.GlobalVars.Client;
string version = "";
int recordCount = client.GetServerRecordCount();
for (int i = 0; i < recordCount; i++)
{
IServerRecord serverRecord = client.GetServerRecord(i);
if (serverRecord.GetName() == "Client")
{
version = serverRecord.GetVersion();
break;
}
}

GetWindowKind​

The method returns the IServerWindowKind interface. Used in conjunction with the GetWindowKindCount method.

IServerWindowKind GetWindowKind(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IServerWindowKind

Extension method of IServerRecordHelper (using DXP;).

GetWindowKindByName​

The method returns the IServerWindowKind interface depending on the DocumentKind Name parameter.

IServerWindowKind GetWindowKindByName(string argName);
ParameterTypePassing
argNamestringvalue

Returns: IServerWindowKind

Extension method of IServerRecordHelper (using DXP;).

See also: IServerWindowKind

GetWindowKindCount​

The method returns the number of document kinds the server supports.

int GetWindowKindCount();

Returns: int

Returned by​

IClient.GetServerRecord, IClient.GetServerRecordByFeature, IClient.GetServerRecordByName, IServerWindowKind.GetServerRecord