Query Method (View Object)

Scope: Schematic editor

Object: View Object

Prerequisites: None

Returns a collection of objects based on type.

Usage

View.Query(ByVal Flags As VdObjectTypeMask, ByVal Selected As VdAllOrSelected) As IVdObjs

Arguments

Flags

Masks which may be combined to refine the query. This is of the form VdObjectTypeMask Enum.

Selected

Indicates whether the execution of this method applies to all objects, or only the selected objects. This is of the form VdAllOrSelected Enum.

Return Values

As IVdObjs. A collection of objects of a particular type.

Description

The Query method is very valuable for traversing all objects of a type. You can perform the query on all objects or on selected objects only.