- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Continuing from a previous issue post here...
I've been able to collect faces created from a Loft, then Split Faces, but I'm getting an Incorrect Parameter error here that I can't seem to get past.
Here's the instructions on how to use it and fortunately includes a link to some sample code, which I am mimicking.
https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-938EBBA8-F9EB-4E46-A6BC-F0C9AFA44EAF
My current code, I've validated I'm getting a good collection of faces
oColl = ThisApplication.TransientObjects.CreateObjectCollection For Each oFace In oCompDef.Features.Item("Tube").Faces For Each oEdge In oFace.Edges If oMT.GetMinimumDistance(oEdge.PointOnEdge, oCompDef.WorkPlanes.Item("Base Sketch Plane")) = 0 Then oColl.Add(oFace) Exit For End If Next Next 'MsgBox(oColl.Count) oDeleteFace = oCompDef.Features.DeleteFaceFeatures.Add(oColl, False)
I've tried toggling the Boolean to True just in case Inventor is insisting on making the repairs, but that too fails.
The manual approach here works without issues without the repairs.
There's not a lot of variations in coding documented here, what do I need here?

Solved! Go to Solution.