GetAllSelectedElementsOfType Function

Returns handle of all selected schematic elements of the requested type or types.

Arguments

Number Type Compulsory Default Description
1 string array Yes Element type or types
2 real No -1 Schematic ID

Argument 1

Either a single element type, or an array of different types.

Available elements types are:

  • ArrowAnnotation
  • ImageAnnotation
  • Instance
  • LineAnnotation
  • ShapeAnnotation
  • TextAnnotation
  • TitleBlock
  • Wire

Argument 2

Schematic ID as returned by OpenSchematic . This makes it possible to apply this function to any schematic and not just the one that is currently displayed. See OpenSchematic for more details.

Returns

Return type: string array

Handles of all selected elements of the type or types requested requested, or an empty string if no matching elements were found.