COM Interface: ILibrary
This class provides access to the following functions and properties in eCADSTAR Library Editor.
Members
Function
| Function | Description |
|---|---|
| void AddFootprint( BSTR name, BSTR alternate) | Adds a new blank footprint definition to the library. |
| void AddPart( BSTR name) | Adds a new blank part definition to the library. |
| void AddSymbol( BSTR name, BSTR alternate) | Adds a new blank symbol definition to the library. |
| void ImportFootprint( BSTR filepath, BSTR layerMappingFile) | Imports a previously-exported footprint. The footprint layer mapping must be complete. If the imported footprint has the same layer mapping as the library, then layerMappingFile may be blank. |
| void ImportPart( BSTR filepath, BSTR attributeMappingFile) | Imports a previously-exported part. The part attribute mapping must be complete. If the imported part has the same attribute mapping as the library, then attributeMappingFile may be blank. |
| void ImportSymbol( BSTR filepath, BSTR MappingFile) | Imports a previously-exported symbol. The symbol mapping must be complete. If the imported symbol has the same mapping as the library, then MappingFile may be blank. |
| void Close() | Closes the library |
| void DisableGridUpdate( VARIANT_BOOL value)void DisableGridUpdate( VARIANT_BOOL value) | Disables updates to the main library grid. When updating a large number of attributes in the main library grid, it is much more efficient to disable updates until all the updates are completed.
|
| void Save() | Saves the library |
Properties
| Property | Description |
|---|---|
| BSTR Name {get} | Returns the library name. |
| BSTR Path {get} | Returns the library path. |
| IParts Parts {get} | Returns the library part collection. |
| IFootprints Footprints {get} | Returns the library footprint collection. |
| ISymbols Symbols {get} | Returns the library symbol collection. |
| ILEPropertyDefinitionContainer PropertyDefinitions {get} | Returns the library property definitions. |

