Enumerates all currently-used sections of a specified multi-section component.

Syntax


Function EnumSections ( _
       ByVal componentName As String) _
       As Variant

Parameters

componentName—Indicates which component to get the sections for.

Remarks

Returns a list of strings corresponding to the sections of the specified component.

The component must be in the top-level circuit and only sections in the top-level circuit are enumerated. For example, if U1A and U1B are in the top-level circuit and U1C is in a subcircuit, calling EnumSections on “U1” will return “A” and “B”.

Any of the strings in the returned variant can be used directly as input to ReplaceComponent.

An empty string is returned for single-section components.

Example


Dim sections() As String
sections = Circuit.EnumSections("U1")

See Also

EnumComponents

ReplaceComponent