public IEnumerable<BaseLibraryPart> GetLibraryPartsByType( IEnumerable<ApiPartType> partTypes )
Parameters
- partTypes
- Desired part types.
Return Value
List of parts of the type(s).
public IEnumerable<BaseLibraryPart> GetLibraryPartsByType( IEnumerable<ApiPartType> partTypes )
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.NoActiveLibraryException | The exception that is thrown when the project has no active library. |
// Open a project beforehand... Project project = ... // Get all parts of the (two) desired types. IEnumerable<BaseLibraryPart> parts = project.ActiveConnection.GetLibraryPartsByType(new PartType[] { PartType.Connector, PartType.Terminal });