::hwat::utils::GetEntitiesInBox

Finds all entities in a box.

Syntax

::hwat::utils::GetEntitiesInBox {boxdimensions} option assemName.

Arguments

boxdimensions
Tcl list containing the box dimensions in the following order: MinX, MinY, MinZ, MaxX, MaxY, MaxZ.
[option]
The type of the entity.
Default = elements
Optional.
[assemName]
Name of the assembly.
Default = ""
Optional.

Returns

Success
Tcl list of all entities of the required type, that the box encloses in the assembly.
Failure
{}

Example

::hwat::utils::GetEntitiesInBox [list 0.0 0.0 0.0 10.0 20.0 15.0] "elements" "MIDRAIL_L"

Comments

If no assembly name is given the entities displayed on the screen will be considered.