HyperWorks Tools

::hwat::utils::GetClosestNode

::hwat::utils::GetClosestNode

Previous topic Next topic No expanding text in this topic  

::hwat::utils::GetClosestNode

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

NAME

::hwat::utils::GetClosestNode - Finds the closest node in the assembly.

 

SYNTAX

::hwat::utils::GetClosestNode x y z [d_tolerance] [assemname] [n_exemptNodes]

 

ARGUMENTS

x

X-coordinate of the location.

y

Y-coordinate of the location.

z

Z-coordinate of the location.

d_tolerance

The tolerance to use in case of searching by window (default = 10.0).

assemname

The name of the component entity set (default = "").

n_exemptNodes

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

 

RETURNS

The ID of the node if successful , {} if unsuccessful.

 

EXAMPLE

::hwat::utils::GetClosestNode –3434.33 8734.89 8436.55 10.0 "CRADLE"

 

Comments

If no assembly is specified, the procedure will search the displayed nodes.  The tolerance is no longer needed, but has been retained to prevent current code from breaking.

 

 

See also

Utils Functions