1. Introduction#

This document describes the use and development of macro commands in Python for Code_Aster. These macro commands can be returned in the code and visible to the user as commands in their own right. But they can also be placed in the command file itself without the user having to touch either the executable or the command catalog. In addition, they have the advantage of being written « naturally » in the command language: the body of a macro command is similar to an ordinary command file that would generate the same command sequence.

The developer will have a great interest in reading the programming of existing macro-commands, under BibPyt/Macro in the Code_Aster installation directory.