pycatia.dnb_sor_interfaces.order_generator¶
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_sor_interfaces.order_generator.OrderGenerator(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectOrderGeneratorInterface representing Create Shop Order APIs which generates Shop OrderInstance(SOI), against user-given option(s).Following gvies the major-steps encountered in a single SOI generation 1) Logsin and secures connection with DPE. 2) Loads the specified job Node. 3) Reslvesthe Work Instrucitons. 4) Captures Images for activities 5) Generates JobXMLand Precedence XML 6) Generates PackNGo data ( Lite or Full) 7) Zips the SOIcontents. 8) FTPs the zipped file to FTP server 9) Updates the Release table.10) Disconnects from DPE.Role: Component that implement DNBIAOrderCreation is“OrderGenerator”Do not extend this interfaceExample : Refer to CreateShopOrder.CATScript or CreateSOI CATScript at intel_a/VBScript/DPM_SOR- create_shop_order() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateShopOrder() As shortCreate Shop Order methodReturns:SOI response, which in-turn can be obtained usingOrderGenerator.GetErrorDescription
- Return type:
int
- create_shop_order2(i_xml_input: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateShopOrder2(CATBSTR iXMLInput)Create Shop Order using XML as SOI input.Parameters:iXMLInputXML input file path Sample schema: Referintel_a/resources/xsd/DPM_SOR/CreateSOI.xsd Sample XML input: Referintel_a/resources/xml/DPM_SOR/CreateSOI.xml
- Parameters:
i_xml_input (str) –
- Return type:
None
- get_error_description(error_code: int) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetErrorDescription(short ErrorCode) As CATBSTRGet Error Description. It deciphers return ERROR code of Create Shop OrderAPI.Parameters:iErrorCodeCreate Shop Order API return codeReturns:oErrDescription Create Shop Order API return code description
- Parameters:
error_code (int) –
- Return type:
str
- set_dpe_login_info(i_dpe_login_id: str, i_dpe_password: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_DPELoginInfo(CATBSTR iDPELoginId,CATBSTR iDPEPassword)Set DPE Login Information.Parameters:iDPELoginIdE5 Login ID for authenticationiDPEPasswordE5 Password for authentication
- Parameters:
i_dpe_login_id (str) –
i_dpe_password (str) –
- Return type:
None
- set_export_3dxml(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_Export3DXML(boolean iRequired)Set Export 3D XML Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_export_image_capture(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_ExportImageCapture(boolean iRequired)Set Export Image Capture Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_export_job_xml(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_ExportJobXML(boolean iRequired)Set Export Job XML Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_export_prec_xml(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_ExportPrecXML(boolean iRequired)Set Export Precedence XML Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_filter_input_string(ifilter_input_string: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_FilterInputString(CATBSTR ifilterInputString)Specifies the filters to be applied while loading the project. The filterscan be specified either in the new way (V5R18 onwards) or the oldway.New Way of Filtering:In the new way of filtering different filters can be set forP,P,Rby specifiying different filter sets for each area and also a globalfilter set.Old way of Filtering:In case of P,P,R filters, either(a) A Filter string can be supplied OR(b) A Calculation Model ID can be suppliedNote: Calculation Model filters MUST only be supplied through their IDs.In case of extended filters, either(a) A Filter string can be supplied OR(b) A Calculation Model ID can be supplied OR(c) Both string AND Model ID can be supplied (Combined effectivitycase)Note: Calculation Model filters MUST only be supplied through their IDs.In case of effectivity filter mode, one of the following rules can besupplied(a) Give the objects whose begin & end dates contains the begin & enddate filters values.The rule value is 1.(b) Give the object whose begin & end dates are with in the begin & enddates filter values.The rule value is 2.(c) Give the object whose begin date value is lesser than the begin datefilter value &the end date value on the object is contained with in the begin & enddate filter values.The rule value is 4.(d) Give the object whose begin date value is contained with in the begin& end date filter values &the end date value on the object is greater than the end date filtervalue.The rule value is 8.(e) Give the object whose begin & end dates exactly match with that ofthe begin & end date filter valuesThe rule value is 16.Note: Combination of the above said rules can also beused.For example: If the user wants the combination of rule a & c, thenthe value of 5 should be passedNote: If the user has not specified any value for this filter, then adefault value of 31 (combination of all rules) will beused.Parameters:iFilters[in]The filters to be set.This is a list of values separated by XML type tags. User Shouldspecify tags only from one of the belowset of tags applicable for new and oldfiltering.The following tags are supported for New way ofFiltering:<GlobalFilterSetName>Global FilterName</GlobalFilterSetName><ProductFilterSetName>Product FilterName</ProductFilterSetName><ProcessFilterSetName>Process FilterName</ProcessFilterSetName><ResourceFilterSetName>Process FilterName</ResourceFilterSetName><ModStatementFilterID>FilterValue</ModStatementFilterID><ProductFilterByCO>FilterValue</ProductFilterByCO><PreFilter>Filter Value</PreFilter><PostFilter>Filter Value</PostFilter><PrePostFilter>Filter Value</PrePostFilter><PlanningStateOwnerFilterID>ID of PlanningState</PlanningStateOwnerFilterID><PlanningStateOtherFilterID>ID of PlanningState</PlanningStateOtherFilterID><ApplyImplicitFilter>TRUE orFALSE</ApplyImplicitFilter>The following tags are supported for Old way ofFiltering:<ProcessFilter>Filter Value</ProcessFilter><ProcessFilterCalcModelID>ID of Calculation ModelFilter</ProcessFilterCalcModelID><ProductFilter>Filter Value</ProductFilter><ProductFilterCalcModelID>ID of Calculation ModelFilter</ProductFilterCalcModelID><ResourceFilter>Filter Value</ResourceFilter><ResourceFilterCalcModelID>ID of Calculation ModelFilter</ResourceFilterCalcModelID><StartDateEffectivityFilter>FilterValue</StartDateEffectivityFilter><EndDateEffectivityFilter>FilterValue</EndDateEffectivityFilter><EffectivityFilterMode>FilterValue</EffectivityFilterMode><LineNumberFilter>FilterValue</LineNumberFilter><LabelFilter>Filter Value</LabelFilter><ModStatementFilterID>FilterValue</ModStatementFilterID><PlanningStateOwnerFilterID>ID of PlanningState</PlanningStateOwnerFilterID><PlanningStateOtherFilterID>ID of PlanningState</PlanningStateOtherFilterID><ApplyImplicitFilter>TRUE orFALSE</ApplyImplicitFilter><ProcessExtendedEffectivityFilter>FilterValue</ProcessExtendedEffectivityFilter><ProcessExtendedEffectivityFilterCalcModelID>ID of CalculationModelFilter</ProcessExtendedEffectivityFilterCalcModelID><ProductExtendedEffectivityFilter>FilterValue</ProductExtendedEffectivityFilter><ProductExtendedEffectivityFilterCalcModelID>ID of CalculationModelFilter</ProductExtendedEffectivityFilterCalcModelID><ResourceExtendedEffectivityFilter>FilterValue</ResourceExtendedEffectivityFilter><ResourceExtendedEffectivityFilterCalcModelID>ID ofCalculation ModelFilter</ResourceExtendedEffectivityFilterCalcModelID>Attribute filters can be supplied using the followingtags<AttributeFilters><ProcessAttributeFilters><AttributeFilter><PlanTypeName>Name of thePlantype</PlanTypeName><AttributeName>Name of theAttribute</AttributeName><Operator>Type of Operator. See list of legal valuesbelow</Operator><AttributeValue>Value of theAttribute</AttributeValue>Add more <AttributeValue>…</AttributeValue> if moreattribute values need to be specified</AttributeFilter>Add more <AttributeFilter>…</AttributeFilter> if moreattribute filters need to be specified</ProcessAttributeFilters><ProductAttributeFilters>Add <AttributeFilter>…</AttributeFilter> as specifiedabove</ProductAttributeFilters><ResourceAttributeFilters>Add <AttributeFilter>…</AttributeFilter> as specifiedabove</ResourceAttributeFilters></AttributeFilters>Note: Instead of specifying plantype name, the object typename(e.g., “ergocompprocessdefault, “ergocomporgprocess”, etc) can also be suppliedif filter is to be applicable to all plantypesNote: For the <Operator> tag, the following are the legalvalues=!=<><=>=LIKENOT LIKEExample:In new way of filtering:iFilters = “<ProcessFilterSetName>Name</ProcessFilterSetName><ProductFilterSetName>Name</ProductFilterSetName><ResourceFilterSetName>Name</ResourceFilterSetName>”The order is NOT important. e.g.,“<ResourceFilterSetName>…</ResourceFilterSetName>” can come before“<ProcessFilterSetName>…</ProcessFilterSetName>”Example:In old way of filtering:iFilters = “<ProcessFilter>Process Type A</ProcessFilter><LabelFilter>Label B</LabelFilter><LineNumberFilter>10</LineNumberFilter>”The order is NOT important. e.g., “<LabelFilter>…</LabelFilter>” cancome before “<ProcessFilter>…</ProcessFilter>”Example:In old way of filtering:Example with attribute filers. Assuming user wishes to filter onLine Number 10 and load only those Workplans that are labelled “Workplan A” and“Workplan C”iFilters = “<LineNumberFilter>10</LineNumberFilter><AttributeFilters><ProcessAttributeFilters><AttributeFilter><PlanTypeName>Workplan</PlanTypeName><AttributeName>name</AttributeName><Operator>=</Operator><AttributeValue>Workplan A</AttributeValue><AttributeValue>Workplan C</AttributeValue></AttributeFilter></ProcessAttributeFilters></AttributeFilters>”Returns:S_OK if all OK E_INVALIDARG if incorrect input format ReferDNBMHIInterfaces/PublicInterfaces/DNBIAMHILoadParameters.idl :: SetFiltersmethod for additional information
- Parameters:
ifilter_input_string (str) –
- Return type:
None
- set_ftp(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_FTP(boolean iRequired)Set FTP Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_ftp_server_information(iftp_host_name: str, iftp_login_name: str, iftp_password: str, iftp_outputlocation: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_FTPServerInformation(CATBSTR iftpHostName,CATBSTR iftpLoginName,CATBSTR iftpPassword,CATBSTR iftpOutputlocation)Set FTP Information.Parameters:iftpHostNameService Host Name for transferering the dataiftpLoginNameLogin Name for authentication to the Service Host Machine fortransfering the dataiftpPasswordPassword for the above loginiftpOutputlocationOutput Dir where to tranfer the data in theMachine
- Parameters:
iftp_host_name (str) –
iftp_login_name (str) –
iftp_password (str) –
iftp_outputlocation (str) –
- Return type:
None
- set_generate_pack_n_go(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_GeneratePackNGo(boolean iRequired)Set Generate PackNGo Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_generate_smg_mapping_xml(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_GenerateSMGMappingXML(boolean iRequired)Set Generate SMG Mapping XML Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_generate_smg_xml(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_GenerateSMGXML(boolean iRequired)Set Generate SMG XML Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_generate_smg_xml_exe_path(i_required: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_GenerateSMGXmlExePath(CATBSTR iRequired)Set Generate SMG XML EXE Path.Parameters:iRequiredPath to the SMG Generator EXE
- Parameters:
i_required (str) –
- Return type:
None
- set_lite_pack_n_go(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_LitePackNGo(boolean iRequired)Set Lite PackNGo Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_load_context(i_required: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_LoadContext(CATBSTR iRequired)Set Load Context Type.Parameters:iRequestTypeType Of RequestManufacturingVolumetricUser
- Parameters:
i_required (str) –
- Return type:
None
- set_load_positions(i_required: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_LoadPositions(CATBSTR iRequired)Set Load Positions Type.Parameters:iRequestTypeType Of Request3DStatesPublishedSimulation
- Parameters:
i_required (str) –
- Return type:
None
- set_manufacturing_context(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_ManufacturingContext(boolean iRequired)Set Manufacturing Context Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_process_name(iprocess_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_ProcessName(CATBSTR iprocessName)Set Process Name.Parameters:iprocessNameProcess Name to be set for PackNGo CATProcess
- Parameters:
iprocess_name (str) –
- Return type:
None
- set_request_type(i_requset_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_RequestType(CATBSTR iRequsetType)Set Request Type.Parameters:iRequestTypeType Of RequestDPMSingleSOIGenerationDPMMultiSOIGenerationDPMMultiSOIGenerationAtCS
- Parameters:
i_requset_type (str) –
- Return type:
None
- set_requested_node_details(i_proj_id: str, i_requested_node_id: str, i_effectivity: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_RequestedNodeDetails(CATBSTR iProjID,CATBSTR iRequestedNodeID,CATBSTR iEffectivity)Set Requested Node Details.Parameters:iProjIDObject ID of the PPR Based ProjectiRequestedNodeIDObject ID of the node selected from PPR Based ProjectiEffectivityTHIS PARAMETER HAS BEEN DEPRICATED FROM R17SP1 USEOrderGenerator.set_FilterInputString method to set your filters
- Parameters:
i_proj_id (str) –
i_requested_node_id (str) –
i_effectivity (str) –
- Return type:
None
- set_set_encryption_mode(i_encryptmode: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_SetEncryptionMode(boolean iEncryptmode)Set Encryption Mode.Parameters:iEncryptmodeEncryption to be done?(True/False) for encrypting the SOR Packagedata
- Parameters:
i_encryptmode (bool) –
- Return type:
None
- set_transaction_id(i_transaction_id: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_TransactionID(CATBSTR iTransactionID)Set Transaction Type.Parameters:iTransactionIDTransaction ID
- Parameters:
i_transaction_id (str) –
- Return type:
None
- set_update_release_table(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_UpdatereleaseTable(boolean iRequired)Set Update Release Table Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None
- set_zip(i_required: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub set_Zip(boolean iRequired)Set Zip Flag.Parameters:iRequiredLegal values: TRUE/FALSE
- Parameters:
i_required (bool) –
- Return type:
None