- See also:
Methods
- Func AddAssemblyAdd( iBody, iBodyComp, iComponent) As
-
Creates a new AssemblyBoolean object by adding a body to the assembly.
- Parameters:
-
- iBody
- The body to add dd>
- iBodyComp
- The component that contains the body to add dd>
- iComponent
- The component with respect to which the AssemblyBoolean object to create will be positioned dd>
- Returns:
- The created object
- Example:
-
This example creates the
addBodyAssemblyBoolean object in theassemblyFeatscollection using a body referenced asbodyToAddcontained in thebodyToAddCompcomponent, and positioned with respect to thepositioningCompcomponent.Dim addBody As AssemblyBoolean Set addBody = assemblyFeats.AddAssemblyAdd(bodyToAdd, _ bodyToAddComp, _ positioningComp)
- 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. dd> - iSketchComp
- The component that contains the sketch dd>
- iDepth
- The hole depth dd>
- iComponent
- The component with respect to which the AssemblyHole object to create will be positioned dd>
- Returns:
- The created object
- Example:
-
This example creates the
holeAssemblyHole object in theassemblyFeatscollection using a sketch referenced asholeSketchcontained in theholeSketchCompcomponent, with a depth of 60mm, and positioned with respect to thepositioningCompcomponent.Dim hole As AssemblyHole Set hole = assemblyFeats.AddAssemblyHole(holeSketch, _ holeSketchComp, _ 60, _ positioningComp)
- Parameters:
-
- iSketch
- The sketch defining the pocket base dd>
- iSketchComp
- The component that contains the sketch dd>
- iDepth
- The pocket depth dd>
- iComponent
- The component with respect to which the AssemblyPocket object to create will be positioned dd>
- Returns:
- The created object
- Example:
-
This example creates the
pocketAssemblyPocket object in theassemblyFeatscollection using a sketch referenced aspocketSketchcontained in thepocketSketchCompcomponent, with a depth of 20mm, and positioned with respect to thepositioningCompcomponent.Dim pocket As AssemblyPocket Set pocket = assemblyFeats.AddAssemblyPocket(pocketSketch, _ pocketSketchComp, _ 20, _ positioningComp)
- Parameters:
-
- iBody
- The body to remove dd>
- iBodyComp
- The component that contains the body to remove dd>
- iComponent
- The component with respect to which the AssemblyBoolean object to create will be positioned dd>
- Returns:
- The created object
- Example:
-
This example creates the
removeBodyAssemblyBoolean object in theassemblyFeatscollection using a body referenced asbodyToRemovecontained in thebodyToRemoveCompcomponent, and positioned with respect to thepositioningCompcomponent.Dim removeBody As AssemblyBoolean Set removeBody = assemblyFeats.AddAssemblyRemove(bodyToRemove, _ bodyToRemoveComp, _ positioningComp)
- Parameters:
-
- iSplittingElement
- The face or plane that will split the current body dd>
- iSplittingElemComp
- The component that contains the splitting element dd>
- iSplitSide
- The specification for which side of the current body should be kept at the end of the split operation dd>
- iComponent
- The component with respect to which the AssemblySplit object to create will be positioned dd>
- Returns:
- The created object
- Example:
-
This example creates the
splitByPlaneAssemblySplit object in theassemblyFeatscollection using a plane referenced assplittingPlanecontained in thesplittingCompcomponent, in such a way that the material to remove be the one located in the direction of thesplittingPlanenormal vector, and positioned with respect to thepositioningCompcomponent.Dim splitByPlane As AssemblySplit Set splitByPlane = assemblyFeats.AddAssemblySplit(splittingPlane, _ splittingComp, _ catPositiveSide, _ positioningComp)
- 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 property. dd>
- 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)
dd>
- 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 property.
- Example:
-
This example removes the last AssemblyFeature object in the assemblyFeats
collection.
assemblyFeats.Remove(assemblyFeats.Count)