pycatia.assembly_interfaces.assembly_feature¶
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.assembly_interfaces.assembly_feature.AssemblyFeature(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectAssemblyFeatureRepresents the AssemblyFeature object.- add_affected_component(i_component: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddAffectedComponent(Product iComponent)Adds a component to the affected component list. An update of theaggregating Product is necessary to apply the Assembly Feature to thiscomponent.Parameters:iComponentThe component to affectExample:The following example adds the component ProdToAffect to the affectedcomponent list of the AssemblyFeature assemblyFeat.assemblyFeat.AddAffectedComponent( ProdToAffect )
- Parameters:
i_component (Product) –
- Return type:
None
- affected_components_count() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AffectedComponentsCount() As longReturns the affected component list count.Example:The following example retrieves the affected component list count ofthe AssemblyFeature assemblyFeat in affectedListSize.affectedListSize = assemblyFeat.AffectedComponentsCount
- Return type:
int
- list_affected_components(o_list_of_components: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListAffectedComponents(CATSafeArrayVariantoListOfComponents)Retrieves the affected component list.Parameters:oListOfComponentsThe retrieved list.The array must be previously initialized using theAffectedComponentsCount method.Example:The following example retrieves the affected component list of theAssemblyFeature assemblyFeat in affectedList.affectedListSize = assemblyFeat.AffectedComponentsCountDim affectedList(affectedListSize-1)assemblyFeat.ListAffectedComponents(affectedList)
- Parameters:
o_list_of_components (tuple) –
- Return type:
None
- remove_affected_component(i_component: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveAffectedComponent(Product iComponent)Removes a component from the affected component list. An update of theaggregating Product is necessary to remove the generated feature from thiscomponent.Parameters:iComponentThe affected component to removeExample:The following example removes the component ProdToRemove from theaffected component list of the AssemblyFeatureassemblyFeat.assemblyFeat.RemoveAffectedComponent( ProdToRemove )
- Parameters:
i_component (Product) –
- Return type:
None