Indexes   

AssemblyFeature (Object)

Represents the AssemblyFeature object.

Method Index

AddAffectedComponent
Adds a component to the affected component list.
AffectedComponentsCount
Returns the affected component list count.
ListAffectedComponents
Retrieves the affected component list.
RemoveAffectedComponent
Removes a component from the affected component list.

Methods


o Sub AddAffectedComponent( 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 )
 
o Func AffectedComponentsCount() As
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
 
o Sub ListAffectedComponents( 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)
 
o Sub RemoveAffectedComponent( 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 )
 

Copyright © 2006, Dassault Systèmes. All rights reserved.