Skip to main content

ModelCenter APIs 2025 R2

Interface ModelCenter::IVizContainer

Last update: 16.07.2025

Definition: ModelCenter/src/ModelCenter.odl (line 6706)

COM instance of a Viz Constainer that allows basic access like show(), hide(), Visible and to the underlying implementation of IDataExplorerPlugIn.

Members

Properties

Property Visible

Definition: ModelCenter/src/ModelCenter.odl (line 1)

boolean ModelCenter::IVizContainer::Visible

Indicates whether container is visible.

Return type: boolean

Property HWnd

Definition: ModelCenter/src/ModelCenter.odl (line 1)

long ModelCenter::IVizContainer::HWnd

Returns the Hwnd for the container instance.

Return type: long

Property id

Definition: ModelCenter/src/ModelCenter.odl (line 6729)

DataExplorer ModelCenter::IVizContainer::id

Returns the COM instance of IDataExplorerPlugIn implementation of the container. This is a read-only property.

Return type: DataExplorer

Public functions

Function hide

void ModelCenter::IVizContainer::hide()

Hides the container. Does not remove or close it.

Return type: void

Function show

void ModelCenter::IVizContainer::show()

Displays the container and brings it to foreground.

Return type: void

Function fileSaved

void ModelCenter::IVizContainer::fileSaved()

Tell the container that the file was saved

Return type: void

Function showAt

void ModelCenter::IVizContainer::showAt(long top, long left, long width, long height, [optional] VARIANT state)

Displays the container at the given position in the given state. Parameters:

  • top: the top position of the window
  • left: the left position of the window
  • width: the width of the window
  • height: the height of the window
  • state: [optional] the state of the window (SW_NORMAL, SW_MINIMIZE, SW_MAXIMIZE)

Parameters:

  • long top
  • long left
  • long width
  • long height
  • [optional] VARIANT state

Return type: void

Connect with Ansys