poIModel GetZViewableCount

Returns the number of entities in the selection set which are visible in the current view orientation.

Syntax

model_handle GetZViewableCount set_id

Application

HyperView Tcl Query

Description

This command can be used to help find a certain view orientation to ensure that some entities are visible.

Inputs

set_id
The selection set ID.

Example

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
client_handle GetModelHandle model_handle [client_handle GetActiveModel]

model_handle GetSelectionSetHandle set_handle [model_handle AddSelectionSet node];

set_handle Add “id 1-50”;
set set_id [set_handle GetID];

set old_count [model_handle GetZViewableCount $set_id];
window_handle GetViewControlHandle view_handle;

# Change the view orientation
window_handle SetOrientation “21.109207 -37.466278 51.054161 -3.141593 1.047198 -2.356194”

# Find out the new count
set new_count [model_handle GetZViewableCount $set_id];

hwi CloseStack

Errors

None.