We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Installation and Licensing Ansys Products Spaceclaim Scripting – Accessing model elements smarter Reply To: Spaceclaim Scripting – Accessing model elements smarter

Atharv Joshi
Forum Moderator

Hi Hartmann, 

You can try creating a named selection and then use the below command to set the selection.
Curve is selected and added as a named selection Group 1.

curve=Selection.CreateByGroups("Group1") 

Please refer to this course on Scripting in Ansys Discovery where is covers various selection. Ansys Discovery Scripting - Access Objects | Ansys Courses

Thanks and Regards
Atharv