How to install macros
Tutorial |
Topic |
---|
Programming |
Level |
Medium programmer |
Time to complete |
5 minutes |
Authors |
Not provided |
LabRPS version |
0.1.0 |
Example files |
None |
See also |
None |
Description
It is easy to add macros by using the Addon Manager. A regular user doesn't need to do more than use this tool. Keep reading for more information regarding installation of macros.
Macros are sequences of commands which are used to perform a complex drawing operation. Macros are Python scripts, which means they are text files that can be written and edited with a text editor.
While Python scripts normally have the .py
extension, LabRPS macros should have the .RPSMacro
extension. A collection of macros written by experienced users is found in the macros recipes page.
See Introduction to Python to learn about the Python programming language, and then Python scripting tutorial and LabRPS Scripting Basics to learn about writing macros.
Toolbar
- Macro recording...: Opens a dialog box to start a macro recording session.
- Stop macro recording: Stops a macro recording session.
- Macros...: Opens a dialog box to manage and execute macros.
- Execute macro: Executes the macro currently in the Python editor.
Menu
Besides the tools in the toolbar, the following functions are also available in the Macro menu.
- Attach to remote debugger...: Attaches LabRPS to a remote debugger.
- Debug macro: Starts a debugging session for the macro in the Python editor.
- Stop debugging: Stops a debugging session.
- Step over: Steps over code.
- Step into: Steps into code.
- Toggle breakpoint: Toggles a breakpoint.
- LabRPS scripting: Python, Introduction to Python, Python scripting tutorial, LabRPS Scripting Basics
- Modules: Units, Quantity
- Workbenches: Gui Commands, Commands
- Parametric objects: Scripted objects, Viewproviders
- Graphical interface: Interface creation, Interface creation completely in Python, PySide, PySide examples beginner, intermediate, advanced
- Macros: Macros, How to install macros
- Other: Expressions
- Hubs: User hub, Power users hub, Developer hub