Maptitude GISDK Help |
Gets the IDs of selected annotations in a map or layout window.
list = GetSelectedAnnotations(string window_spec)
Argument |
Contents |
window_spec |
Window type and name |
An array of integer IDs of the selected annotations, or null if no annotations are selected.
For a full list of GISDK functions for annotations, see Freehand Items (Annotations).
anns = GetSelectedAnnotations("Map|My Map")
for i = 1 to anns.length do CopyAnnotation("Map|My Map", anns[i]) end
Error Type |
Meaning |
NotFound |
The map or layout window does not exist. |
Function |
Summary |
Removes the selected annotations from a map or layout window |
|
Gets the definition of an annotation |
|
Returns the IDs of all annotations in a map or layout window |
|
Adds an annotation to the list of selected annotations |
|
Selects all annotations in a map or layout window |
©2025 Caliper Corporation | www.caliper.com |