Skip to main content
View as Markdown

ISch_Lib interface

This interface represents an existing library document open in Altium Designer. A library is composed of library pages and each page represents the symbol (schematic library component).

public interface ISch_Lib : ISch_Document

Namespace: SCH · Assembly: Altium.SDK.Interfaces

Inherits: ISch_BasicContainer → ISch_GraphicalObject → ISch_ParametrizedGroup → ISch_Document

Remarks​

You can modify or set the document's preference settings.

You can invoke the ChooseLocationInteractively or ChooseRectangleInteractively methods to obtain coordinates from the Schematic sheet or library sheet.

You can check whether objects exist on a particular point on a schematic or library document.

You can iterate design objects in a library document, with the library iterator. This iterator is created by the SchLibIterator_Create method.

You can invoke the LibIsEmpty method to check if the library is empty (ie no symbols in the library) or not.

Due to the nature of a library document, all symbols (library components) are displayed on their library pages, so you iterate through the library to fetch symbols.

Properties​

PropertyTypeAccessDescription
Current_SchComponentISch_Componentget; setThis property gets or sets the component as the current component in the library document.
CurrentSchComponentDisplayModebyteget; set
CurrentSchComponentLibReferencestringget; set
CurrentSchComponentPartIdintget; set
Descriptionstringget; setThis property gets or sets the description of the library document.
FolderGUIDstringget; set
LifeCycleDefinitionGUIDstringget; set
ReleaseVaultGUIDstringget; set
RevisionNamingSchemeGUIDstringget; set
SchComponentByLibRefISch_Componentget
ShowHiddenPinsboolget; setThis property gets or sets the visible property of hidden pins of the component in the library document.

Current_SchComponent​

This property gets or sets the component as the current component in the library document.

ISch_Component GetState_Current_SchComponent();
void SetState_Current_SchComponent(ISch_Component argValue);

Type: ISch_Component · Access: read/write

The accessors are extension methods of ISch_LibHelper (using SCH;).

Examples: Extension_CreateSchComponent

CurrentSchComponentDisplayMode​

No description yet.

byte GetState_CurrentSchComponentDisplayMode();
void SetState_CurrentSchComponentDisplayMode(byte argDisplayMode);

Type: byte · Access: read/write

CurrentSchComponentLibReference​

No description yet.

string GetState_CurrentSchComponentLibReference();
void SetState_CurrentSchComponentLibReference(string argValue);

Type: string · Access: read/write

CurrentSchComponentPartId​

No description yet.

int GetState_CurrentSchComponentPartId();
void SetState_CurrentSchComponentPartId(int argPartId);

Type: int · Access: read/write

Description​

This property gets or sets the description of the library document.

string GetState_Description();
void SetState_Description(string argValue);

Type: string · Access: read/write

FolderGUID​

No description yet.

string GetState_FolderGUID();
void SetState_FolderGUID(string argValue);

Type: string · Access: read/write

LifeCycleDefinitionGUID​

No description yet.

string GetState_LifeCycleDefinitionGUID();
void SetState_LifeCycleDefinitionGUID(string argValue);

Type: string · Access: read/write

ReleaseVaultGUID​

No description yet.

string GetState_ReleaseVaultGUID();
void SetState_ReleaseVaultGUID(string argValue);

Type: string · Access: read/write

RevisionNamingSchemeGUID​

No description yet.

string GetState_RevisionNamingSchemeGUID();
void SetState_RevisionNamingSchemeGUID(string argValue);

Type: string · Access: read/write

SchComponentByLibRef​

No description yet.

ISch_Component GetState_SchComponentByLibRef(string argLibRef);

Type: ISch_Component · Access: read-only · Index: argLibRef (string)

The accessors are extension methods of ISch_LibHelper (using SCH;).

Examples: Extension_RemoveSchLibComponent

ShowHiddenPins​

This property gets or sets the visible property of hidden pins of the component in the library document.

bool GetState_ShowHiddenPins();
void SetState_ShowHiddenPins(bool argValue);

Type: bool · Access: read/write

Methods​

MethodReturnsDescription
AddSchComponentvoid
LibIsEmptybool
LinkDocumentToReleaseVaultbool
LoadFromFilevoid
ReleaseDocumentbool
RemoveSchComponentvoid
SaveToFilevoid
Sch_LibraryRuleChecker_CreateISch_LibraryRuleChecker
Sch_LibraryRuleChecker_Destroyvoid
SchLibIterator_CreateISch_Iterator
SetState_CurrentSchComponentAddDisplayModevoid
SetState_CurrentSchComponentAddPartvoid
SetState_CurrentSchComponentRemoveDisplayModevoid
SetState_CurrentSchComponentRemovePartvoid
SplitIntoComponentsvoid
TransferComponentsPrimitivesBackFromEditorvoid
TransferComponentsPrimitivesToEditorvoid

AddSchComponent​

No description yet.

void AddSchComponent(ISch_Component argComponent);
void AddSchComponent(object argComponent);
ParameterTypePassing
argComponentISch_Componentvalue

Returns: nothing (void)

The first overload is an extension method of ISch_LibHelper (using SCH;) with typed parameters; the second is declared by the interface.

Examples: Extension_CreateSchComponent

LibIsEmpty​

No description yet.

bool LibIsEmpty();

Returns: bool

Examples: Extension_RemoveSchLibComponent

LinkDocumentToReleaseVault​

No description yet.

bool LinkDocumentToReleaseVault(string argParameters, ref string argErrorMsg);
ParameterTypePassing
argParametersstringvalue
argErrorMsgstringref

Returns: bool

LoadFromFile​

No description yet.

void LoadFromFile(string argVFSAddress);
ParameterTypePassing
argVFSAddressstringvalue

Returns: nothing (void)

ReleaseDocument​

No description yet.

bool ReleaseDocument(string argParameters, ref string argErrorMsg);
ParameterTypePassing
argParametersstringvalue
argErrorMsgstringref

Returns: bool

RemoveSchComponent​

No description yet.

void RemoveSchComponent(ISch_Component argComponent);
void RemoveSchComponent(object argComponent);
ParameterTypePassing
argComponentISch_Componentvalue

Returns: nothing (void)

The first overload is an extension method of ISch_LibHelper (using SCH;) with typed parameters; the second is declared by the interface.

SaveToFile​

No description yet.

void SaveToFile(string argVFSAddress);
ParameterTypePassing
argVFSAddressstringvalue

Returns: nothing (void)

Sch_LibraryRuleChecker_Create​

No description yet.

ISch_LibraryRuleChecker Sch_LibraryRuleChecker_Create();

Returns: ISch_LibraryRuleChecker

Extension method of ISch_LibHelper (using SCH;).

Sch_LibraryRuleChecker_Destroy​

No description yet.

void Sch_LibraryRuleChecker_Destroy(ref ISch_LibraryRuleChecker argRuleChecker);
void Sch_LibraryRuleChecker_Destroy(ref object argRuleChecker);
ParameterTypePassing
argRuleCheckerISch_LibraryRuleCheckerref

Returns: nothing (void)

The first overload is an extension method of ISch_LibHelper (using SCH;) with typed parameters; the second is declared by the interface.

SchLibIterator_Create​

No description yet.

ISch_Iterator SchLibIterator_Create();

Returns: ISch_Iterator

Extension method of ISch_LibHelper (using SCH;).

SetState_CurrentSchComponentAddDisplayMode​

No description yet.

void SetState_CurrentSchComponentAddDisplayMode();

Returns: nothing (void)

SetState_CurrentSchComponentAddPart​

No description yet.

void SetState_CurrentSchComponentAddPart();

Returns: nothing (void)

SetState_CurrentSchComponentRemoveDisplayMode​

No description yet.

void SetState_CurrentSchComponentRemoveDisplayMode();

Returns: nothing (void)

SetState_CurrentSchComponentRemovePart​

No description yet.

void SetState_CurrentSchComponentRemovePart();

Returns: nothing (void)

SplitIntoComponents​

No description yet.

void SplitIntoComponents(string argOutputDirectoryPath, bool argOverwriteExistingFile, bool argRemoveParameter, bool argRemoveModel, bool argRemoveBadCharactersFromName);
ParameterTypePassing
argOutputDirectoryPathstringvalue
argOverwriteExistingFileboolvalue
argRemoveParameterboolvalue
argRemoveModelboolvalue
argRemoveBadCharactersFromNameboolvalue

Returns: nothing (void)

TransferComponentsPrimitivesBackFromEditor​

No description yet.

void TransferComponentsPrimitivesBackFromEditor();

Returns: nothing (void)

TransferComponentsPrimitivesToEditor​

No description yet.

void TransferComponentsPrimitivesToEditor();

Returns: nothing (void)

Inherited members​

Returned by​

ISch_ServerInterface.CreateSchLibrary

Accepted by​

ISch_ServerInterface.DestroySchLibrary

Examples​

Used in the SDK examples: Extension_CreateSchComponent, Extension_RemoveSchLibComponent.