How to create nodal named selection from Faces named selection?
Ayush Kumar
Member, Moderator, Employee Posts: 450
✭✭✭✭
Answers

# Get faces named selection faces = Model.NamedSelections.Children[0] nodes = Model.AddNamedSelection() nodes.ScopingMethod = GeometryDefineByType.Worksheet criteria = nodes.GenerationCriteria # First row criteria.Add(None) criterion_1 = criteria[0] nodes.Name = "Nodes" ExtAPI.DataModel.Tree.Refresh() criterion_1.EntityType=SelectionType.GeoFace criterion_1.Criterion = SelectionCriterionType.NamedSelection criterion_1.Operator = SelectionOperatorType.Equal criterion_1.Value = faces # Second row criteria.Add(None) criterion_2 = criteria[1] criterion_2.Action = SelectionActionType.Convert criterion_2.EntityType=SelectionType.MeshNode nodes.Generate()
8 
Or a straightforward one:
faces = Model.NamedSelections.Children[0] faces.CreateNodalNamedSelection()
2