Ansys Learning Forum Forums Discuss Simulation 3D Design NamedSelection in SpaceClaim Script Reply To: NamedSelection in SpaceClaim Script

Nicole Pan Tavares
Subscriber

This is the current code for creating this selection, but in this case, it is selecting the entire solid, which is not wanted. 

'' 

center_point = Point.Create(MM(0), MM(3), MM(0))
r_test = MM(1)

#BoundingBox = Box.Create(min_point, max_point)
comp = Selection.Create(GetRootPart())

#filtered_faces = faces.FilterByBoundingBox(BoundingBox)
faces = comp.ConvertToFaces()
filtered_faces = faces.FilterByBoundingSphere(center_point, r_inlet)

filtered_faces.CreateAGroup('Inlet_Test')


"