Editing feature definitions after creation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning friends, I'm running into a situation where the Topological Naming is messing up my flange editor.
The first thing of note there are only 3 variations of this type to be applied and modified from the model. A 2", 3" and 4" option. The 2" and 3" are both tapered while the 4" is not. All I'm attempting to do is change the size and placement of these items dynamically. or basically swap between them using form inputs.
The issue is, the OD of the 4" situation is larger than the bottom of my model (bottom radius cannot be changed). Adding a face to the combine cut that's used to cut this and the gusset features. It then breaks my shell feature unable to calculate the proper faces for the shell.
Sub main()
Dim App As Inventor.Application = ThisApplication
Dim oDoc As PartDocument = App.ActiveDocument
Dim CompDef As PartComponentDefinition = oDoc.ComponentDefinition
Dim oTO As TransientObjects = App.TransientObjects
Dim oParams As Inventor.UserParameters = CompDef.Parameters.UserParameters
Dim oShell As ShellFeature = CompDef.Features.ShellFeatures.Item("F2 Shell feature")
Dim oShellDef As ShellDefinition = oShell.Definition
Dim oCombine As CombineFeature = CompDef.Features.CombineFeatures.Item("F2 combine")
Dim FaceCol As FaceCollection = oTO.CreateFaceCollection
For Each iFace As Face In oCombine.Faces
If iFace.Evaluator.Area < 1 Then
FaceCol.Add(iFace)
End If
Next
oShell.SetEndOfPart(True)
For Each iFace As Face In FaceCol
oShellDef.InputFaces.Add(iFace)
Next
CompDef.SetEndOfPartToTopOrBottom(False)
End Sub
The above code has been modified multiple times in an attempt to suppress, move end of part, specify different faces, clear the face collection and more. This includes confirming that the face that's claim to be missing, has already been loaded into the collection. Or at least the Evaluator.area is the same.
Attached are two photos. One shows the 2 + 3" layout, while the other shows the 4". I've circled the face messing this up in red, in blue I've pointed out the seam creating the face issue.
Any held would be greatly appreciated!