public List <NXOpen.Features.TrimBody2> CreateBuilder() { List <NXOpen.Features.TrimBody2> trims = new List <NXOpen.Features.TrimBody2>(); foreach (Face face in faces) { bool isok; NXOpen.Features.TrimBody2 trim = null; try { trim = TrimBodyUtils.CreateTrimBodyFeature(face, true, out isok, body); } catch (NXException ex) { ClassItem.WriteLogFile(ex.Message); continue; } if (trim != null) { trims.Add(trim); Body temp = trim.GetBodies()[0]; if (isok) { body = temp; } } } return(trims); }
public List <NXOpen.Features.TrimBody2> CreateBuilder() { List <NXOpen.Features.TrimBody2> trims = new List <NXOpen.Features.TrimBody2>(); foreach (Face face in faces) { bool isok; NXOpen.Features.TrimBody2 trim = TrimBodyUtils.CreateTrimBodyFeature(face, true, out isok, body); if (trim != null) { trims.Add(trim); Body temp = trim.GetBodies()[0]; if (isok) { body = temp; } } } return(trims); }