TAGGED: #python-#ironpython, script, spaceclaim
-
-
June 5, 2024 at 7:36 pmNicole Pan TavaresSubscriber
Hello! I'm having trouble creating NamedSelection via SpaceClaim Script, but I'll leave my question in parts.
This is a slice of my geometry, in which you can see an entrance and an exit. The problem is that I need to name them before moving on to meshing, which will also be done via code.
The first problem is that I don't know how to select these regions. I can't use “FilterByArea” because the input and output areas are the same. I'm trying to do it via “FilterByBoundingBox” and it didn't work, and “FIlterByBoundingSphere” even works, but it's selecting the whole solid. How could I select only that surface from the input and output it in a generalized way in the code?
This is because my geometry is scalable, so everything has to be parameterized, so I want a form of selection that depends either on the region or on the geometric parameters. -
June 5, 2024 at 7:41 pmNicole Pan TavaresSubscriber
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')
"
-
- The topic ‘NamedSelection in SpaceClaim Script’ is closed to new replies.
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- plugin error failed to import assembly from spaceclaim
- Overlapping contact face
- Thermoelectric Cooler Model
- Issue Seeing Explore
- Warning Plugin Error Geometry in Design Modeler
- SpaceClaim stops sharing topology
-
1416
-
599
-
591
-
565
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.