Skip to content

Commit

Permalink
FEAT: update pymechanical cheatsheet (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair authored Jun 26, 2024
1 parent ae9be85 commit 1daa887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
\end{center}

\begin{center}
\small{\textbf{Version: 0.10 (stable)}} \\
\small{\textbf{Version: 0.11 (stable)}} \\
\end{center}

\AddToShipoutPicture*
Expand Down
3 changes: 1 addition & 2 deletions cheat_sheets/pymechanical_cheat_sheet/pymechanical_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1daa887

Please sign in to comment.