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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
AssemblyFeature

Represents 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 the
aggregating Product is necessary to apply the Assembly Feature to this
component.

Parameters:

iComponent
The component to affect

Example:
The following example adds the component ProdToAffect to the affected
component 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 long

Returns the affected component list count.

Example:
The following example retrieves the affected component list count of
the 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(CATSafeArrayVariant
oListOfComponents)

Retrieves the affected component list.

Parameters:

oListOfComponents
The retrieved list.
The array must be previously initialized using the


AffectedComponentsCount method.

Example:
The following example retrieves the affected component list of the
AssemblyFeature assemblyFeat in affectedList.

affectedListSize = assemblyFeat.AffectedComponentsCount
Dim 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 the
aggregating Product is necessary to remove the generated feature from this
component.

Parameters:

iComponent
The affected component to remove

Example:
The following example removes the component ProdToRemove from the
affected component list of the AssemblyFeature
assemblyFeat.

assemblyFeat.RemoveAffectedComponent( ProdToRemove )
Parameters:

i_component (Product) –

Return type:

None