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