pycatia.cat_plant_ship_interfaces.psp_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_plant_ship_interfaces.psp_workbench.PSPWorkbench(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectPspWorkbenchRepresents the PspWorkbench.Role: To manage application and Psp interface handlers. From this object allthe queries for lists of Distributive system (PSP) objects can be made.Furthermore, all the interface handles can be obtained through thisinterface.- export_properties(i_document_to_export_from: Document, i_xml_output_file_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ExportProperties(Document iDocumentToExportFrom,CATBSTR iXMLOutputFileName)This method extracts property values of the current document to an outputXML file. The format is determined by CATIA PlantShip XML-DTDfile.Parameters:iDocumentToExportFromDocumennt to export fromiXMLOutputFileNameThe file name to output the data to.Example:Dim objPspWorkbench As PspWorkbenchDim objCATIAV5CurDocument As DocumentDim iXMLOutputFileName As StringSet objCATIAV5CurDocument = CATIA.ActiveDocumentSet objProductRoot = objCATIAV5CurDocument.ProductSet objPspWorkbench = objProductRoot.GetTechnologicalObject (“PspWorkbench”)..objThisIntf.ExportProperties objCATIAV5CurDocument,iXMLOutputFileName
- Parameters:
i_document_to_export_from (Document) –
i_xml_output_file_name (str) –
- Return type:
None
- get_application(i_application_id: int) PSPApplication ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetApplication(CatPspIDLApplicationID iApplicationID) AsPspApplicationReturns the PspApplication associated with the inputApplicationID.Parameters:CatPspIDLApplicationIDApplication ID to get.oApplicationPspApplication handle found.Example:Dim objPspWorkbench As PspWorkbenchDim objArg1 As CatPspIDLApplicationIDDim objArg2 As PspApplicationobjArg1 = catPspIDLCATPipingSet objArg2 = objPspWorkbench.GetApplication (objArg1)
- Parameters:
i_application_id (int) – enum cat_psp_idl_application_id
- Return type:
- get_interface(i_interface_name: str, i_object: AnyObject) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetInterface(CATBSTR iInterfaceName,AnyObject iObject) As AnyObjectReturns specific interface handle on a given object.Parameters:iInterfaceNameinterface name to search for (“CATIAxxxx”)iObjectThe object to search for the required interface.Returns:Interface handle foundExample:This example illustrates how to get a specific interface handle froma given object.Dim objPspWorkbench As PspWorkbenchDim objPspApplication As PspApplicationDim objPspAppFactory As PspAppFactoryDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objPspWorkbench = objProductRoot.GetTechnologicalObject (“PspWorkbench”)Set objPspPipApplication = objPspWorkbench.GetApplication(catPspIDLCATPiping)Set objPspPipAppFactory = objPspWorkbench.GetInterface (“CATIAPspAppFactory”,objPspPipApplication)