poIModel GetBoundingBox

Returns the bounding box coordinates of the model.

Syntax

model_handle GetBoundingBox displayed_entities

Application

HyperView Tcl Query

Description

This command returns the bounding box values of the model. The return value is a list of six numbers corresponding to the xyz coordinates of the lower left corner and the upper right corner.

Inputs

displayed_entities (Optional)
By default, the bounding box is calculated for the whole model. If this argument is set to "true", then the bounding box will be calculated only for the displayed entities.

Example

To retrieve the bounding box of the model:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle

# Add 3 Result files (bumper, bumper foam, airbag)
set mid [client_handle AddResultMathAnalysis "Standard", "c:/samples/bumper/d3plot", "c:/samples/bumper/d3plot", 0, 0]

client_handle GetModelHandle model_handle $mid
set bbox [model_handle GetBoundingBox]


hwi CloseStack

Errors

None.