9.1. Selecting Entities

You can select a subset of entities via a combination of the basic select functions shown in the following table:

Table 9.1: Selection Functions

Select  —  Selects items from the full set of data.

 

Reselect  —   Selects (again) from the selected subset.

 

Also Select  —  Adds a different subset to the current subset.

 

Unselect  —  Subtracts a portion of the current subset.

 

Select All  —   Restores the full set.

 

Select None  —  Deactivates the full set (opposite of Select All).

 

Invert  —  Switches between the active and inactive portions of the set.

 

The functions are available for all entities (nodes, elements, keypoints, lines, areas, and volumes) on the Utility Menu or via commands.

For additional information about picking, see Graphical Picking in the Operations Guide.

9.1.1. Selecting Entities Using Commands

Table 9.2: Select Commands shows a summary of commands available to select subsets of entities. Notice the "crossover" commands: commands that allow you to select one entity based on another entity. For example, you can select all keypoints attached to the current subset of lines. Here is a typical sequence of select commands:

LSEL,S,LOC,Y,2,6   ! Select lines that have center locations between Y=2 and Y=6
LSEL,A,LOC,Y,9,10  ! Add lines with center locations between Y=9 and Y=10
NSLL,S,1           ! Select all nodes on the selected lines
ESLN               ! Select all elements attached to selected nodes

See the LSEL, NSLL, and ESLN command descriptions in the Command Reference for further information.


Note:  Crossover commands for selecting finite element model entities (nodes or elements) from solid model entities (keypoints, areas, etc.) are valid only if the finite element entities were generated by a meshing operation on a solid model that contains the associated solid-model entities.


Table 9.2: Select Commands

EntityBasic CommandsCrossover Command(s)
Nodes NSEL NSLE, NSLK, NSLL, NSLA, NSLV
Elements ESEL ESLN, ESLL, ESLA, ESLV
Keypoints KSEL KSLN, KSLL
Hard PointsKSEL, ASEL, LSELNone
Lines LSEL LSLA, LSLK
Areas ASEL ASLL, ASLV
Volumes VSEL VSLA
Components CMSEL None

9.1.2. Selecting Entities Using the GUI

The GUI path equivalent to issuing most of the commands listed in Table 9.2: Select Commands is Utility Menu> Select> Entities.

The GUI option displays the Select Entities dialog box, from which you can choose the type of entities you want to select and the criteria by which you will select them. For example, you can choose Elements and By Num/Pick to select elements by number or by picking.

Plotting One Entity Type and Selecting Another

It is sometimes useful to plot one entity type and select another. For example, in a model with hidden faces, you may want to obtain a wire-frame view. You can do so by plotting the lines via Utility Menu> Plot> Lines (LPLOT), and then selecting areas using graphical picking via Utility Menu> Select> Entities> Areas> By Num/Pick (ASEL,S,PICK). This method is available by default.

Combining Entities Into Components or Assemblies

You will likely want to combine entities into components or assemblies wherever possible for clarity or ease of reference. The following GUI paths provide selection options for defined components or assemblies:

GUI:
Utility Menu> Select> Comp/Assembly> Select All
Utility Menu> Select> Comp/Assembly> Select Comp/Assembly
Utility Menu> Select> Comp/Assembly> Pick Comp/Assembly
Utility Menu> Select> Comp/Assembly> Select None

9.1.3. Selecting Lines to Repair CAD Geometry

When CAD geometry is imported into Mechanical APDL, the transfer may define the display of short line elements, which are difficult to identify on screen.

By choosing the line selection option, you can find and display these short lines:

Command(s): LSEL
GUI: Utility Menu> Select> Entities> Lines> By Length/Radius

Enter the minimum and maximum length or radius in the VMIN and VMAX fields. These fields, as they are used in this option, represent the range of values which corresponds to the length or radius of the short line elements. You should enter reasonable values in VMIN and VMAX to assure that the selected set only includes those short lines that you want to display. When the selected set appears on screen, you can pick individual lines within the set and repair the geometry as necessary.


Note:  A line which is not an arc returns a zero radius. RADIUS is only valid for lines that are circular arcs.


9.1.4. Other Commands for Selecting

To restore all entities to their full sets, use one of the following:

Command(s): ALLSEL
GUI: Utility Menu> Select> Everything Below> Selected Areas
Utility Menu> Select> Everything Below> Selected Elements
Utility Menu> Select> Everything Below> Selected Lines
Utility Menu> Select> Everything Below> Selected Keypoints
Utility Menu> Select> Everything Below> Selected Volumes

This one command has the same effect as issuing a series of NSEL,ALL; ESEL,ALL; KSEL,ALL; etc. commands.

You also can use ALLSEL or its GUI equivalents to select a set of related entities in a hierarchical fashion. For example, given a subset of areas, you can select all lines defining those areas, all keypoints defining those lines, all elements belonging to these areas, lines, and keypoints, and all nodes belonging to these elements, by simply issuing one command: ALLSEL,BELOW,AREA

To select a subset of degree of freedom and force labels, use one of the following:

Command(s): DOFSEL
GUI: Main Menu> Preprocessor> Loads> Define Loads> Operate> Scale FE Loads> Constraints
Main Menu> Preprocessor> Loads> Define Loads> Operate> Scale FE Loads> Forces
Main Menu> Preprocessor> Loads> Define Loads> Settings> Replace vs Add> Constraints
Main Menu> Preprocessor> Loads> Define Loads> Settings> Replace vs Add> Forces
Main Menu> Solution> Define Loads> Operate> Scale FE Loads> Constraints
Main Menu> Solution> Define Loads> Operate> Scale FE Loads> Forces
Main Menu> Solution> Define Loads> Settings> Replace vs Add> Constraints
Main Menu> Solution> Define Loads> Settings> Replace vs Add> Forces

By selecting a subset of these labels, you can simply use ALL in the Label field of some commands to refer to the entire subset. For instance, the command DOFSEL,S,UX,UZ followed by the command D,ALL,ALL would put UX and UZ constraints on all selected nodes. DOFSEL does not affect the solution degrees of freedom.