All Frameworks  Object Hierarchy  This Framework  Indexes   

AssemblyFeatures (Collection)

A collection of all the AssemblyFeature objects of a product.
See also:
AssemblyFeature

Method Index

AddAssemblyAdd
Creates a new AssemblyBoolean object by adding a body to the assembly.
AddAssemblyHole
Creates a new AssemblyHole object.
AddAssemblyPocket
Creates a new AssemblyPocket object.
AddAssemblyRemove
Creates a new AssemblyBoolean object by removing a body from the assembly.
AddAssemblySplit
Creates a new AssemblySplit object.
Item
Returns an AssemblyFeature object using its index or its name from the AssemblyFeatures collection.
Remove
Removes an AssemblyFeature object from the AssemblyFeatures collection.

Methods


o Func AddAssemblyAdd( iBody,
iBodyComp,
iComponent) As
Creates a new AssemblyBoolean object by adding a body to the assembly.
Parameters:
iBody
The body to add
iBodyComp
The component that contains the body to add
iComponent
The component with respect to which the AssemblyBoolean object to create will be positioned
Returns:
The created AssemblyBoolean object
Example:
This example creates the addBody AssemblyBoolean object in the assemblyFeats collection using a body referenced as bodyToAdd contained in the bodyToAddComp component, and positioned with respect to the positioningComp component.
 Dim addBody As AssemblyBoolean
 Set addBody = assemblyFeats.AddAssemblyAdd(bodyToAdd,     _
                                            bodyToAddComp, _
                                            positioningComp)
 
o Func AddAssemblyHole( iSketch,
iSketchComp,
iDepth,
iComponent) As
Creates a new AssemblyHole object.
Parameters:
iSketch
The sketch defining the hole reference plane and anchor point.
This sketch must contain a single point that defines the hole axis: the hole axis in 3D passes through that point and is normal to the sketch plane.
iSketchComp
The component that contains the sketch
iDepth
The hole depth
iComponent
The component with respect to which the AssemblyHole object to create will be positioned
Returns:
The created AssemblyHole object
Example:
This example creates the hole AssemblyHole object in the assemblyFeats collection using a sketch referenced as holeSketch contained in the holeSketchComp component, with a depth of 60mm, and positioned with respect to the positioningComp component.
 Dim hole As AssemblyHole
 Set hole = assemblyFeats.AddAssemblyHole(holeSketch,     _
                                          holeSketchComp, _
                                          60,             _
                                          positioningComp)
 
o Func AddAssemblyPocket( iSketch,
iSketchComp,
iDepth,
iComponent) As
Creates a new AssemblyPocket object.
Parameters:
iSketch
The sketch defining the pocket base
iSketchComp
The component that contains the sketch
iDepth
The pocket depth
iComponent
The component with respect to which the AssemblyPocket object to create will be positioned
Returns:
The created AssemblyPocket object
Example:
This example creates the pocket AssemblyPocket object in the assemblyFeats collection using a sketch referenced as pocketSketch contained in the pocketSketchComp component, with a depth of 20mm, and positioned with respect to the positioningComp component.
 Dim pocket As AssemblyPocket
 Set pocket = assemblyFeats.AddAssemblyPocket(pocketSketch,     _
                                              pocketSketchComp, _
                                              20,               _
                                              positioningComp)
 
o Func AddAssemblyRemove( iBody,
iBodyComp,
iComponent) As
Creates a new AssemblyBoolean object by removing a body from the assembly.
Parameters:
iBody
The body to remove
iBodyComp
The component that contains the body to remove
iComponent
The component with respect to which the AssemblyBoolean object to create will be positioned
Returns:
The created AssemblyBoolean object
Example:
This example creates the removeBody AssemblyBoolean object in the assemblyFeats collection using a body referenced as bodyToRemove contained in the bodyToRemoveComp component, and positioned with respect to the positioningComp component.
 Dim removeBody As AssemblyBoolean
 Set removeBody = assemblyFeats.AddAssemblyRemove(bodyToRemove,     _
                                                  bodyToRemoveComp, _
                                                  positioningComp)
 
o Func AddAssemblySplit( iSplittingElement,
iSplittingElemComp,
iSplitSide,
iComponent) As
Creates a new AssemblySplit object.
Parameters:
iSplittingElement
The face or plane that will split the current body
iSplittingElemComp
The component that contains the splitting element
iSplitSide
The specification for which side of the current body should be kept at the end of the split operation
iComponent
The component with respect to which the AssemblySplit object to create will be positioned
Returns:
The created AssemblySplit object
Example:
This example creates the splitByPlane AssemblySplit object in the assemblyFeats collection using a plane referenced as splittingPlane contained in the splittingComp component, in such a way that the material to remove be the one located in the direction of the splittingPlane normal vector, and positioned with respect to the positioningComp component.
 Dim splitByPlane As AssemblySplit
 Set splitByPlane = assemblyFeats.AddAssemblySplit(splittingPlane,  _
                                                   splittingComp,   _
                                                   catPositiveSide, _
                                                   positioningComp)
 
o Func Item( iIndex) As
Returns an AssemblyFeature object using its index or its name from the AssemblyFeatures collection.
Parameters:
iIndex
The index or the name of the AssemblyFeature object to retrieve from the AssemblyFeatures collection. As a numerics, this index is the rank of the AssemblyFeature object in the collection. The index of the first AssemblyFeature object in the collection is 1, and the index of the last AssemblyFeature object is Count. As a string, it is the name you assigned to the AssemblyFeature object using the
AnyObject.Name property.
Returns:
The retrieved AssemblyFeature object
Example:
This example retrieves the last item in the assemblyFeats collection.
 Dim lastAssemblyFeat As AssemblyFeature
 Set lastAssemblyFeat = assemblyFeats.Item(assemblyFeats.Count)
 
o Sub Remove( iIndex)
Removes an AssemblyFeature object from the AssemblyFeatures collection.
Parameters:
iIndex
The index or the name of the AssemblyFeature object to remove from the AssemblyFeatures collection. As a numerics, this index is the rank of the AssemblyFeature object in the collection. The index of the first AssemblyFeature object in the collection is 1, and the index of the last AssemblyFeature object is Count. As a string, it is the name you assigned to the AssemblyFeature object using the
AnyObject.Name property.
Example:
This example removes the last AssemblyFeature object in the assemblyFeats collection.
 assemblyFeats.Remove(assemblyFeats.Count)
 

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