Meshing:

Bobin John
Bobin John Member Posts: 8
First Comment
**
edited June 2023 in 3D Design

I have created a named Selection as part of the scripting in SpaceClaim However, I want to append another surface into that same-named Selection. How can I script that? Unfortunately, when using the record button to add, it did not script for me.

Best Answer

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 382
    25 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    GroupName="<YourGroupNameHere>"
    
    CurrentItems=list(Selection.CreateByGroups(GroupName).Items)
    NewItems = list(Selection.GetActive().Items)
    AllItems = CurrentItems+NewItems
    NamedSelection.Replace(GroupName, Selection.Create(AllItems), Selection.Empty())