pycatia.dnb_mhi_interfaces.mhi_open_access¶
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.dnb_mhi_interfaces.mhi_open_access.MHIOpenAccess(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMHIOpenAccessInterface representing a means to load data from the Hub intoV5.DNBIAMHIOpenAccess is implemented on Application. Applications and CAA partnersshould NOT implement this interface.- connect_to_ppr_hub(i_username: str, i_password: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ConnectToPPRHub(CATBSTR iUsername,CATBSTR iPassword)This method establishes a connection to the PPRHubParameters:iUsername[in] User Login nameiPassword[in] User passwordReturns:S_OK if connection established OK S_FALSE if connection is alreadyestablished for user E_FAIL if connection could not be established
- Parameters:
i_username (str) –
i_password (str) –
- Return type:
None
- create_load_parameters() MHILoadParameters ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateLoadParameters() As MHILoadParametersThis method creates an object which will contain all the necessaryinformation required for loading an object (and its structure) from a PPR Hubinto V5Parameters:oLoadParameters[out] Interface to the created Load Parameters objectReturns:S_OK if object created ok and interface returned OK E_FAIL on error
- Return type:
- load_from_ppr_hub(i_load_parameters: MHILoadParameters, i_create_default_window: bool, i_is_read_only: bool, o_error_messages: tuple) Document ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func LoadFromPPRHub(MHILoadParameters iLoadParameters,boolean iCreateDefaultWindow,boolean iIsReadOnly,CATSafeArrayVariant oErrorMessages) As DocumentThis method loads an object (and it structure) from a PPR Hub project intoV5 Note: All Tools->Options settings will be respected during theloadParameters:iLoadParameters[in] The object which contains all the necessary information forthe loadiCreateDefaultWindow[in] Option to indicate whether a window needs to be created forthe document or not If no window is created, then caller is responsible forlife cycle of documentiIsReadOnly[in] Option to indicate if document is to loaded in read-only modeoLoadedDoc[out] The V5 document into which data from the Hub is loadedoErrorMessages[out] The list of message about invalid or insufficient agrumentspassed to the methodReturns:S_OK if everything ran OK E_FAIL on error
- Parameters:
i_load_parameters (MHILoadParameters) –
i_create_default_window (bool) –
i_is_read_only (bool) –
o_error_messages (tuple) –
- Return type:
- set_environment_for_vbs_launch(i_obj_id: str, i_filter: str, i_parent_id: str, i_project_id: str, i_user_name: str, i_pwd: str, o_error_messages: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetEnvironmentForVBSLaunch(CATBSTR iObjId,CATBSTR iFilter,CATBSTR iParentId,CATBSTR iProjectId,CATBSTR iUserName,CATBSTR iPwd,CATSafeArrayVariant oErrorMessages)This method sets the environment required for Direct Launch Through givenVB ScriptParameters:iObjId[in] process object ECB ID. Which needs to be opened in DPMiFilter[in] selected Project filtersiParentId[in] parent object ECB IDiProjectId[in] project IDiUserName[in] user name to log-on to DPEiPwd[in] password to log-on to DPEoErrorMessages[out] error messages(if any)Returns:S_OK if everything ran OK E_FAIL on error
- Parameters:
i_obj_id (str) –
i_filter (str) –
i_parent_id (str) –
i_project_id (str) –
i_user_name (str) –
i_pwd (str) –
o_error_messages (tuple) –
- Return type:
None