Enumerates all components in the Multisim circuit.

Syntax


Function EnumComponents ( _
       ByVal filterType As ComponentType) _
       As Variant

Parameters

filterType—Indicates which types of component to enumerate, as defined by the enumeration enum ComponentType.

Remarks

Includes components in the top level of a Multisim circuit only. This includes other top-level pages of a multipage design. However, components inside subcircuits and hierarchical blocks are not available.

The list of reference designators is returned as a list of strings.

Multi-section components return a single RefDes, and not the associated section name(s). For example, if components "U1A" and "U1B" are on the main workspace, EnumComponents returns "U1". To get a list of currently-used section names, use EnumSections.

Example


Dim Components() As String
Components = Circuit.EnumComponents(MultisimInterface.CompononentType.ComponentAll)