Previous Topic: Renaming Objects for Purposes of Copy

Next Topic: More Information

Copying the Model Objects

After editing the model object list, you use the YCPYMDLOBJ command to copy the objects. As a safety check, the target model must be the first model in the library list. The source model must be the second. This section describes how the YCPYMDLOBJ command functions and provides an example of how you might use the command.

The YCPYMDLOBJ command does the following:

  1. Expands the model object list. Each of the selected objects in the list is examined for referenced objects that are required for each object to be complete. These implicitly required objects must be copied if they do not exist in the target model.
  2. Adds to or updates the referenced objects in the list and flags them as implicitly selected.
  3. Checks for discrepancies between the objects.
  4. Depending on the option you specify in the CPYOPT parameter, does one of the following:

For example, to copy model objects from model object list MYMDLLST of the objects in model MYOLDMDL to the model MYMDL, you would enter the following and press Enter:

YCPYMDLOBJ  FROMMDLLIB(MYOLDMDL)+ TOMDLLIB(MYMDL) CPYLST(MYMDLLST)

This example leaves the CPYOBJ parameter at the default *PREPASS option.