d5.01.02 Introduce a new macro command#
Summary:
This document describes how to define and use macro commands in Python.
- 1. Introduction
- 2. What is a macro?
- 3. Use macros
- 4. Define a macro command in Python
- 5. Define the body of the macro
- 5.1. Organization of the modules
- 5.2. Transmission of keywords from the macro to the construction method (the body)
- 5.3. Call a command in the body of the macro
- 5.4. Naming the concepts produced in the body by the macro
- 5.5. Retrieving exceptions in a macro
- 5.6. Access product concepts before the macro
- 5.7. Number the macro
- 5.8. Dealing with errors
- 5.9. The displays
- 5.10. Identify the concepts produced by the macro
- 5.11. Dynamic creation of orders: variable number of keywords, contextual content
- 5.12. Call to an external code
- 5.13. Programming rules
- 6. Consideration on the use of macros in Python