hm_getlineendpoint
Returns the components of the line end point.
Syntax
hm_getlineendpoint line_id
Type
HyperMesh Tcl Query Command
Description
Returns the components of the line end point. If the line is a closed loop, the start and end points will return the same value.
Inputs
- line_id
- The ID of the line.
Example
To get the components of the end of the line with ID 341:
set list [hm_getlineendpoint 341]
set x [lindex $list 0]
set y [lindex $list 1]
set z [lindex $list 2]
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}