Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation 3D Design How to select elements to create a surface using SpaceClaim scripting? Reply To: How to select elements to create a surface using SpaceClaim scripting?

Nicole Pan Tavares
Subscriber

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)

"

[bingo_chatbox]