Message 1 of 13
iLogic ----> Stitch Composite Surface Body
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I would like to use iLogic to "Stitch" a Composite Surface Body and make it a Solid.
I have some code that "Stitches" two individual surfaces, but it fails on one single Composite Surface Body.
I think a solution is very close, any help or suggestions is much appreciated!
Thanks. Grt, Joris
code:
Sub Main() Dim oPartDoc As PartDocument oPartDoc = ThisApplication.ActiveDocument Dim oCompDef As PartComponentDefinition oCompDef = oPartDoc.ComponentDefinition Dim oSurfaces As ObjectCollection oSurfaces = ThisApplication.TransientObjects.CreateObjectCollection oSurfaces.Add (oCompDef.WorkSurfaces.Item(1)) oSurfaces.Add (oCompDef.WorkSurfaces.Item(2)) Dim oKnitFeature As KnitFeature oKnitFeature = oCompDef.Features.KnitFeatures.Add(oSurfaces) End Sub
PS: When looking at the Object Model Tree there are two items that seem suitable for accessing the Composite Surface Body: WorkSurfaces and SurfaceBodies. A simple test shows there's 1 Worksurface and no SurfaceBody in the specific Composite part I want to convert. So accessing should work somehow with oCompDef.Worksurfaces.something-something?