HyperWorks Tools

::hwat::core::GetClosestNodeByDistance

::hwat::core::GetClosestNodeByDistance

Previous topic Next topic No expanding text in this topic  

::hwat::core::GetClosestNodeByDistance

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::core::GetClosestNodeByDistance - Finds the closest node in the assembly.  This procedure finds the node with the shortest distance from the required location.

 

SYNTAX

::hwat::core::GetClosestNodeByDistance x y z n_nodeList n_exemptNodes

 

ARGUMENTS

x

X-coordinate of the location.

y

Y-coordinate of the location.

z

Z-coordinate of the location.

n_nodeList

A Tcl list of nodes to search from.

n_exemptNodes

A Tcl list of nodes to exempt from the search(default = "").

 

RETURNS

The ID of the element if successful, {} otherwise.

 

EXAMPLE

::hwat::core::GetClosestNodeByDistance –3434.33 8734.89 8436.55 [list 1 2 …1001 1002] [list 120 121]

 

 

See also

Core Functions