PCBWorkbench (Object)

Interface to access Circuit Board Design workbench object.

Methods


Func CreateBoard( iRoot) As
Allows to create a Board.
Parameters:
iRoot
Root product of the Part to extend
oBoard
The board created
Returns:
    The result of the method:
  • S_OK if succeeded
  • E_FAIL if failed
Func CreateComponent( iRoot, iElecPackageNumber, iElecPartNumber, iElecType) As
Allows to create a Component.
Parameters:
iRoot
Root product of the Part to extend
iElecPackageNumber
The package number used to valuate the component attribute
iElecPartNumber
The part number used to valuate the part number of the component
iElecType
The Type of the component to create : ELECTRICAL or MECHANICAL
oComponent
The Component created
Returns:
    The result of the method:
  • S_OK if succeeded
  • E_FAIL if failed
Func CreatePanel( iRoot) As
Allows to create a panel.
Parameters:
iRoot
Root product of the Part to extend
oPanel
The panel created
Returns:
    The result of the method:
  • S_OK if succeeded
  • E_FAIL if failed
Func GetRootProduct( doc) As
Allows to get the root product of a document.
Parameters:
doc
The document to scan
oRoot
The root product of the document scanned
Returns:
    The result of the method:
  • S_OK if succeeded
  • E_FAIL if failed