Sweepable objects have some properties that make them useful in certain mesh functions. So it is nice to be able to have all sweepables in one named selection.
This can be done with a few lines of script.
- Use the mesh item in the tree to Show sweepable bodies
- use the Selection manager to access the active/selection
- Write those to a name selection called Sweepables
mesh = ExtAPI.DataModel.Project.Model.Mesh
sweepables = mesh.ShowSweepableBodies()
SM = ExtAPI.SelectionManager
CurrentSelection=SM.CurrentSelection
ns = ExtAPI.DataModel.Project.Model.AddNamedSelection()
ns.Name = 'Sweepables'
ns.Location = CurrentSelection
Thanx 2 @Rohith Patchigolla