How to select elements to create a surface using SpaceClaim scripting?
TAGGED: script, spaceclaim
-
-
April 25, 2024 at 8:47 pmNicole Pan TavaresSubscriber
Helo!Â
I'm creating a standardized geometry with several circles and channels that interconnect the circles. I then want to select only the circles and channels to create surfaces and then extrude them. It can't be done by recording the script because this geometry has to be expanded later, and if it's done by selecting the mouse and recording the script, it won't work for the other geometries. How could I write this script to select and create a surface?
-
April 25, 2024 at 9:20 pmNicole Pan TavaresSubscriber
I managed to do this by giving the number of lines to be selected, and thus creating the surface only in the desired region.Â
"selection_curves = [] Â # Lista para armazenar os valores de Curves[i]
for i in range(13): Â # Iterando de 0 a 13
  curve = GetRootPart().DatumPlanes[0].Curves[i]
  selection_curves.append(curve)selection = Selection.Create(selection_curves)
secondarySelection = Selection.Empty()
options = FillOptions()
result = Fill.Execute(selection, secondarySelection, options, FillMode.Layout, None)"
-
- The topic ‘How to select elements to create a surface using SpaceClaim scripting?’ is closed to new replies.
- Unable to attach geometry 2024 R2
- DXF file loaded incorrectly
- plugin error failed to import assembly from spaceclaim
- Overlapping contact face
- Thermoelectric Cooler Model
- Issue Seeing Explore
- Inventor 2025 files
- SpaceClaim stops sharing topology
- Ansys SpaceClaim and Discovery 2024 Facet shelling bug – 2022 version is better
- solidwork parameters for optimization in ansys
-
1762
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.