We have an assembly of parts inside Mechanical that have line bodies with different cross section assignments, and we would like to create named selections where every named selection (ns) contains only line bodies with the same cross section, using scripting. For instance, if the cross sections used are Rectangular, Circular, and Circular Tube, then one ns will have all parts using the Rectangular Section, another ns will contain all parts with a Circular section, and the final one will have all parts with a Circular Tube section (). The name of the ns will be the same as the cross section names used by the line bodies (in the case below, Rectangular, Circular, and Circular Tube).