Message 1 of 3
Creating a shell feature and removing a face created in the step before

Not applicable
11-30-2020
04:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Im trying to create a shell feature but it gives me back an error.
Dim oThickness As Double = 1
Dim Shellfeatures As ShellFeatures = pDef.Features.ShellFeatures
Dim oFaces As FaceCollection = invApp.TransientObjects.CreateFaceCollection
Dim oFace As Face
For Each oFace In pDef.SurfaceBodies.Item(1).Faces
oFaces.Add(oFace)
Next
Dim Shelldef As ShellDefinition = pDef.Features.ShellFeatures.CreateShellDefinition(oFaces, oThickness, ShellDirectionEnum.kOutsideShellDirection)
Dim NewShellFeat As ShellFeature = Shellfeatures.Add(Shelldef)
The part has been sculpted and then splitted. One of the two bodies resulting from the split has no visibilty, the other one is the one supposed to make the shell. How can I get this to work and then also how do I specifiy which face to delete so the part becomes hollow? The face that needs to be deleted is the one created during the split.
Cheers, Omar