5.7. Using Macros with Components and Assemblies

To make large models easier to manage, you may want to divide a model into discrete components based on different types of entities: nodes, elements, keypoints, lines, areas, or volumes. Each component can contain only one type of entity. Doing this enables you to perform tasks such as applying loads or producing graphics displays conveniently and separately on different portions of the model.

You can also create assemblies, which are groups that combine two or more components or even multiple assemblies. You can nest assemblies up to five levels deep. For example, you could build an assembly named motor from components called STATOR, PERMMAG, ROTOR, and WINDINGS.

The table below describes some of the commands you can issue to build components and assemblies. For more detailed discussions of these commands, see the Command Reference. For further information on components and assemblies, see Selecting and Components in the Basic Analysis Guide.

CM Groups geometry items into a component
CMDELE Deletes a component or assembly.
CMEDIT Edits an existing component or assembly. Mechanical APDL updates assemblies automatically to reflect deletions of lower-level or assemblies.
CMGRP Groups components and assemblies into one assembly. Once defined, an assembly can be listed, deleted, selected, or unselected using the same commands as for components.
CMLIST Lists the entities contained in a component or assembly.
CMSEL Selects a subset of components and assemblies.