All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

SchWorkbench (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---Workbench
            |
            +---SchWorkbench
 


Represents a workbench on a schematic document.
Role:A workbench is a set of commands that can be used to create, modify and edit the objects making up the document.
See also:
Document

Method Index

FindInterface
This method returns an interface handle to an object.

Methods


o Func FindInterface(CATBSTR iInterfaceName,
CATBaseDispatch iObject) As CATBaseDispatch
This method returns an interface handle to an object.
Parameters:
iInterfaceName
interface name to search for ("CATIAxxxx")
iObject
The object to search for the required interface.
oInterfaceFound
interface handle found
Example:
The following example retrieves a CATIAInterfaceNameToFind handle to the CATIAxxxx_iObject in interfaceFound using the Schematics workbench object schWorkbench.
 Dim interfaceFound As AnyObject
 Set interfaceFound = CATIASchWorkbench.FindInterface("InterfaceNameToFind",CATIAProduct_iObject)
 

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