pycatia.cat_sch_platform_interfaces.sch_workbench

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.cat_sch_platform_interfaces.sch_workbench.SchWorkbench(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.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
find_interface(i_interface_name: str, i_object: AnyObject) AnyObject

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
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)
Parameters:
  • i_interface_name (str) –

  • i_object (AnyObject) –

Return type:

AnyObject