Community
I have two Surface bodies apart from each other (but, sort of, perpendicular, L like). How can I extend, trim and stitch them to form a single surface body.
In Inventor 2014 you can use the Combine(Part->3D Model->Modify->Combine) command to merge two solids into a single solid.
As Rocky mentioned, you can use a CombineFeature to merge solid bodies:
Sub CombineBodies() Dim doc As PartDocument Set doc = ThisApplication.ActiveDocument Dim def As PartComponentDefinition Set def = doc.ComponentDefinition Dim baseBody As SurfaceBody Set baseBody = def.SurfaceBodies(1) Dim toolBodies As ObjectCollection Set toolBodies = _ ThisApplication.TransientObjects.CreateObjectCollection toolBodies.Add def.SurfaceBodies(2) Dim combineFeature As combineFeature Set combineFeature = def.features.CombineFeatures.Add( _ baseBody, toolBodies, kCutOperation, True) End Sub
For surfaces, you use a knit (stitch) feature. See "KnitFeatures.Add Method" in the help files.
ExtendFeature and TrimFeature creation is not exposed in the API.
I hope that helps,
Philippe.