Running scripts automatically

You have to create a omanimator.cfg file to be able to run scripts automatically.

Procedure

  1. Within a component, create a file named omanimator.cfg.
  2. Give the file the following parameters:
    • Path where you type ".." so the file is generated to a directory one level higher.
    • File Type where you select Other.

Results

When animation starts, if IBM® Rational® Rhapsody® finds a file named omanimator.cfg, it runs the file. This approach can be useful for large projects or projects containing a GUI because a script, like the following example, could be written and automatically executed:

//================================================
// Switch off the animation before starting
watch
// Run with animation off to create all objects
go idle
// Switch animation back on
display


// Run continuously
go
//================================================

Feedback