Hello,
I am not sure I understand your question. The API allows you to create a KnitFeature using the Add method of the KnitFeatures collection. This Add method takes an ObjectCollection of surfaces. The help file has a VBA example:
StitchFeatureCreate()
You could get the worksurfaces from the existing KnitFeature you want to knit together and put them in the ObjectCollection that you pass to KnitFeatures.Add().
Here is some VBA code I used to test:
Sub addToStitchFeature()
Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument
Dim oCompDef As PartComponentDefinition
Set oCompDef = oPartDoc.ComponentDefinition
Dim oSrf1 As WorkSurface
Set oSrf1 = oPartDoc.SelectSet(1)
Dim oSrf2 As WorkSurface
Set oSrf2 = oPartDoc.SelectSet(2)
Dim oSurfaces As ObjectCollection
Set oSurfaces = ThisApplication.TransientObjects.CreateObjectCollection
oSurfaces.Add oSrf1
oSurfaces.Add oSrf2
Dim oKnitFeature As KnitFeature
Set oKnitFeature = oCompDef.Features.KnitFeatures.Add(oSurfaces)
End Sub
The attached screenshots help explain.
Hope this helps,
Wayne
Wayne Brill
Developer Technical Services
Autodesk Developer Network