NumberSelectedAnnotations Function

Returns the number of selected annotations.

Arguments

Number Type Compulsory Default Description
1 string No empty string Filter
2 real No -1 Schematic ID

Argument 1

Optional filter string. If set to " textenabled " only annotations that text can be added to are counted.

Argument 2

Schematic ID as returned by the OpenSchematic function. This allows this function to be used with a schematic that is not open or not currently selected. If equal to -1, the currently selected schematic will be used.

Returns

Return type: real

The number of selected annotations.