Skip to content

Commit

Permalink
minor changes to the cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
vnamdeo committed Dec 16, 2024
1 parent 21e6067 commit cba1ae8
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ \section{\includegraphics[height=\fontcharht\font`\S]{slash.png} # Connect PyWor
\section{\includegraphics[height=\fontcharht\font`\S]{slash.png} Local connection to a Workbench Server}
Execute the steps below to link PyWorkbench with a local Ansys Workbench session:

\begin{document}
\begin{itemize}
\item Initiate Ansys Workbench
\item Input StartServer() in the Workbench Command Window
\item Utilize the given port number to link PyWorkbench with the server
\end{itemize}
\end{document}

\pythoncode{scripts/generated_scripts/pyworkbench_script_0.py}

Expand All @@ -74,12 +72,10 @@ \section{\includegraphics[height=\fontcharht\font`\S]{slash.png} Execute scripts

These methods can be utilized to execute IronPython-based Workbench scripts containing commands or queries, with the help of PyWorkbench:

\begin{document}
\begin{itemize}
\item \texttt{run_script_string()}: Executes a script that is included within the provided string
\item \texttt{run_script_file()}: Executes a script file in the client's working directory
\end{itemize}
\end{document}

Using \texttt{run_script_string()} method:
\pythoncode{scripts/generated_scripts/pyworkbench_script_4.py}
Expand Down

0 comments on commit cba1ae8

Please sign in to comment.