Object Explorer  Object Hierarchy Index

Windows (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---Collection
          |
          +---Windows
 


A collection of all the Window objects currently managed by the application.

Function and Subroutine Index

Item
Returns a window using its index or its name from the Windows collection.
...

Methods

 
o Func Item( CATVariant iIndex) As Window
Returns a window using its index or its name from the Windows collection.
Parameters:
iIndex
The index or the name of the window to retrieve from the collection of windows. As a numerics, this index is the rank of the window in the collection. The index of the first window in the collection is 1, and the index of the last window is Count. As a string, it is the name you assigned to the window using the AnyObject.Name property.
Returns:
The retrieved window
Example:
This example returns in ThisWindow the third window in the collection, and in ThatWindow the window named MyWindow.
 Dim ThisWindow As Window
 Set ThisWindow = CATIA.Windows.Item(3)
 Dim ThatWindow As Window
 Set ThatWindow = CATIA.Windows.Item("MyWindow")
 
...

Copyright © 2000, Dassault Systèmes. All rights reserved.