Hi, Is there a direct way to delete the elements lying within a closed curve. The elements and curves lie on the same plane. I can only think of getting the coordinates of the points of the curves, and then compare it with the CG coords of elements and delete which lies within the vertices of closed curve. This process could be time consuming. Are there any other tricks?
Solved! Go to Solution.
Give this a try, it might be a way to get what you're looking for.
The API will prompt you to select a surface and then select your curves that make up your boundary. Those curves will be projected into the surface creating two different surfaces. It will then remesh the original surface using the attributes, leaving the new surface without mesh.
The HTML Clipboard
Sub Main Dim App As femap.model Set App = feFemap() Dim crvSet As femap.Set Set crvSet = App.feSet Dim srfSet As femap.Set Set srfSet = App.feSet Dim dSet As femap.Set Set dSet = App.feSet Dim eSet As femap.Set Set eSet = App.feSet Dim sID As Long If srfSet.SelectID(FT_SURFACE, "Select Surface to Project Onto", sID) <> FE_OK Then End If crvSet.Select(FT_CURVE, True, "Select Curves as Bounds") <> FE_OK Then End App.feCurveProjectCurvesOntoSurfaces(crvSet.ID, srfSet.ID, 0, True) rc = App.feMeshSurface2(-sID, 0, 0, False, False) App.feViewRegenerate(0) End Sub