We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

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