::hwat::utils::GetClosestElement

Find the closest element in the assembly.

Syntax

::hwat::utils::GetClosestElement x y z assemname

Arguments

x
X-coordinate of the location.
y
Y-coordinate of the location.
z
Z-coordinate of the location.
assemname
The name of the component entity set.
Default = ""

Returns

Success
The element ID.
Failure
{}

Example

::hwat::utils::GetClosestElement –3434.33 8734.89 8436.55 "CRADLE"

Comments

If no assembly is specified, the procedure searches in the displayed elements.