| Maptitude GISDK Help |
Selects links based on a set of nodes from its associated node layer.
Added to version 2022.
n_selected = SelectByNodes(string set_name, string operation, string node_set, opt array options)
| Argument | Contents |
|---|---|
| set_name | The name of the selection set |
| operation | The operation to perform, as indicated below |
| node_set | The set of nodes to use |
| Operation | Meaning |
|---|---|
| several | Replaces the contents of the selection set |
| less | Removes features from the selection set |
| more | Adds features to the selection set |
| subset | Selects a subset of the selection set |
| Option | Type | Contents |
|---|---|---|
| Inclusion | String | Enclosed or Intersecting, overriding the current setting; for more information, seeSetSelectInclusion() |
| Max | Integer | Maximum number of records to select |
| Display | Boolean | "True" or "False" overriding the current setting; for more information, seeSetSelectDisplay() |
| Auto Redraw | Boolean | "True" or "False" overriding the current setting; for more information, seeSetSelectAutoRedraw() |
| Source And | String | A selection set on the current layer that records must be in to be selected |
| Source Not | String | A selection set on the current layer that records must not be in to be selected |
An integer indicating the number of records in the selection set.
The options array is an optional argument.
The current layer must be a line layer .
If the set does not already exist, SelectByNodes() creates it.
n = SelectByNodes("Selection", "Several", nodeset)
| Error Type | Meaning |
|---|---|
| Error | The set name, the operation type or the node set is invalid |
| NotFound | No features exist |
| Function | Summary |
|---|---|
| SelectByLinks() | Selects nodes based on a set of links from its associated line layer |
| ©2025 Caliper Corporation | www.caliper.com |