diff --git a/cheat_sheets/pymechanical_cheat_sheet/pymechanical_cheat_sheet.tex b/cheat_sheets/pymechanical_cheat_sheet/pymechanical_cheat_sheet.tex index f04bb84..3862f92 100644 --- a/cheat_sheets/pymechanical_cheat_sheet/pymechanical_cheat_sheet.tex +++ b/cheat_sheets/pymechanical_cheat_sheet/pymechanical_cheat_sheet.tex @@ -20,7 +20,7 @@ \end{center} \begin{center} - \small{\textbf{Version: 0.10 (stable)}} \\ + \small{\textbf{Version: 0.11 (stable)}} \\ \end{center} \AddToShipoutPicture* diff --git a/cheat_sheets/pymechanical_cheat_sheet/pymechanical_script.py b/cheat_sheets/pymechanical_cheat_sheet/pymechanical_script.py index 46f78da..69ef123 100644 --- a/cheat_sheets/pymechanical_cheat_sheet/pymechanical_script.py +++ b/cheat_sheets/pymechanical_cheat_sheet/pymechanical_script.py @@ -75,9 +75,8 @@ # BREAK BLOCK # Extract the global API entry points (available from built-in Mechanical scripting) -from ansys.mechanical.core import global_variables # Merge them into your Python global variables -globals().update(global_variables(app)) +app.update_globals(globals()) # BREAK BLOCK ExtAPI # Application.ExtAPI DataModel # Application.DataModel