pycatia.dnb_mhi_interfaces.mhi_load_parameters¶
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_load_parameters.MHILoadParameters(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMHILoadParametersInterface representing a means to set information that is needed for the loadand also to retrieve this information on the loaded document.Note: All the IDs in the Get and Set methods defined in this inteface deal withObject ID (attribute name: oid), not the Object UUID (attribute name:objectuuid)Access to this interface is provided via DNBIAMHIOpenAccess andDNBIAMHISaveAccess. Applications and CAA partners should NOT implement thisinterface.- get_branch_ids() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetBranchIDs() As CATSafeArrayVariantGets the “subcompitem” IDs (oid) of the Branch. Branch is a list of parentsof the selected object. Please refer to the following PES for details onBranch. “PES_DELMIA_V5R17_Manufacturing Hub Infrastructure_Manufacturing HubIntegration_R17MHI031_ExposeLoadSave.doc”Example:the branch is the “subcompitem” ID of PWP, the “subcompitem” ID of WPandthe “subcompitem” ID of PP.Note: The list will be filled in that order.Parameters:oListBranchIDs[out] List of IDs of the Branch in the order mentioned aboveReturns:S_OK in one/more IDs returned S_FALSE if empty output list
- Return type:
tuple
- get_detailing_id() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDetailingID() As CATBSTRGets the ID (oid) of the loaded detailingParameters:oDetailingID[inout] ID of the loaded detailingReturns:S_OK if non-empty string returned S_FALSE if empty string
- Return type:
str
- get_process_tree_id() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetProcessTreeID() As CATBSTRGets the “subcompitem” ID (oid) of the process tree selected for the loadFor the topmost node in the tree, since no “subcompitem” ID is available, the“ergocompbase” ID is supplied as the BOMParameters:oProcessTreeID[inout] ID of the select process treeReturns:S_OK if non-empty string returned S_FALSE if empty string
- Return type:
str
- get_product_bom_id() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetProductBOMID() As CATBSTRGets the “subcompitem” ID (oid) of the product BOM selected for the loadFor the topmost node in the tree, since no “subcompitem” ID is available, the“ergocompbase” ID is supplied as the BOMParameters:oProductBOMID[inout] ID of the select product BOMReturns:S_OK if non-empty string returned S_FALSE if empty string
- Return type:
str
- get_resource_tree_id() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetResourceTreeID() As CATBSTRGets the “subcompitem” ID (oid) of the resource tree selected for the loadFor the topmost node in the tree, since no “subcompitem” ID is available, the“ergocompbase” ID is supplied as the BOMParameters:oResourceTreeID[inout] ID of the select resource treeReturns:S_OK if non-empty string returned S_FALSE if empty string
- Return type:
str
- get_selected_object_id() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSelectedObjectID() As CATBSTRGets the “ergocompbase” ID (oid) of the selected object (object used tostart the load)Parameters:oSelectedObjectID[inout] ID of the selected objectReturns:S_OK if non-empty string returned S_FALSE if empty string
- Return type:
str
- set_branch_i_ds(i_list_branch_i_ds: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetBranchIDs(CATSafeArrayVariant iListBranchIDs)Sets the “subcompitem” IDs (oid) of the Branch. Branch is a list of parentsof the selected object. Please refer to the following PES for details onBranch. “PES_DELMIA_V5R17_Manufacturing Hub Infrastructure_Manufacturing HubIntegration_R17MHI031_ExposeLoadSave.doc”Example:the branch is the “subcompitem” ID of PWP, the “subcompitem” ID of WPand the “subcompitem” ID of PP.Note: The list MUST be filled in that order.Parameters:iListBranchIDs[in] List of IDs of the Branch in the order mentioned aboveReturns:S_OK in all cases
- Parameters:
i_list_branch_i_ds (tuple) –
- Return type:
None
- set_detailing_id(i_detailing_id: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDetailingID(CATBSTR iDetailingID)Sets the ID (oid) of detailing to be loadedParameters:iDetailingID[in] ID of the detailingReturns:S_OK in all cases
- Parameters:
i_detailing_id (str) –
- Return type:
None
- set_filters(i_filters: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetFilters(CATBSTR iFilters)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
- Parameters:
i_filters (str) –
- Return type:
None
- set_process_tree_id(i_process_tree_id: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetProcessTreeID(CATBSTR iProcessTreeID)Sets the “subcompitem” ID (oid) of process tree selected for the load Forthe topmost node in the tree, since no “subcompitem” ID is available, the“ergocompbase” ID has to be suppliedParameters:iProcessTreeID[in] ID of the process treeReturns:S_OK in all cases
- Parameters:
i_process_tree_id (str) –
- Return type:
None
- set_product_bomid(i_product_bomid: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetProductBOMID(CATBSTR iProductBOMID)Sets the “subcompitem” ID (oid) of product BOM selected for the load Forthe topmost node in the tree, since no “subcompitem” ID is available, the“ergocompbase” ID has to be suppliedParameters:iProductBOMID[in] ID of the product BOMReturns:S_OK in all cases
- Parameters:
i_product_bomid (str) –
- Return type:
None
- set_resource_tree_id(i_resource_tree_id: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetResourceTreeID(CATBSTR iResourceTreeID)Sets the “subcompitem” ID (oid) of resource tree selected for the load Forthe topmost node in the tree, since no “subcompitem” ID is available, the“ergocompbase” ID has to be suppliedParameters:iResourceTreeID[in] ID of the resource treeReturns:S_OK in all cases
- Parameters:
i_resource_tree_id (str) –
- Return type:
None
- set_selected_object_id(i_selected_object_id: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetSelectedObjectID(CATBSTR iSelectedObjectID)Sets the “ergocompbase” ID (oid) of selected object (object use to startthe load).Parameters:iSelectedObjectID[in] ID of the selected objectReturns:S_OK in all cases
- Parameters:
i_selected_object_id (str) –
- Return type:
None