How can I use a script to delete a named selection?
sunyroy
Member Posts: 11
**
in Structures
Answers
-
disp_ns =[ns for ns in ExtAPI.DataModel.GetObjectsByType(DataModelObjectCategory.NamedSelection) if ns.Name=="Displacement"] for ns in disp_ns: ns.Delete()
1 -
Also for a single line without for loop (more efficient)
ExtAPI.DataModel.Remove(disp_ns)0