*nodelistbypath2
Creates a node path from the starting node to the ending node.
Syntax
*nodelistbypath2 node_id1 node_id2 list_id flag
Type
HyperMesh Tcl Modify Command
Description
Creates a node path from the starting node to the ending node.
Inputs
- node_id1
- The ID of the first node.
- node_id2
- The ID of the second node.
- list_id
- The ID of the node list to populate. Valid values are 1 and 2.
- flag
- 0 - If both node_id1 and node_id2 lie on free edges, the path will follow free edges where possible. Otherwise, the shortest path is returned. This is the same as running *nodelistbypath.
- search_factor=<value>
- By default, only a subsection of the model is considered when creating the node path. Increasing this value will increase the search area. Default value is 1.0.
Example
To determine the path between nodes 100 and 110 using the shortest path:
*nodelistbypath2 100 110 1 1
To determine the path between nodes 100 and 110 using the shortest path considering the
increase in search area by 20
percent:
*nodelistbypath2 100 110 1 1 search_factor=1.2
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
10-SA1-130
2022.1 - Added new argument search_factor.