How to select elements to create a surface using SpaceClaim scripting?
TAGGED: script, spaceclaim
-
-
April 25, 2024 at 8:47 pm
Nicole Pan Tavares
SubscriberHelo!Â
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 pm
Nicole Pan Tavares
SubscriberI 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.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.