Page 12 - Demo
P. 12
Interface to Python%uf09f %uf09f RCP Consult 2017-2025 Page 12The example at the end of section 8 can be rewritten asDEFFUNC(41)=pythonf(\DEFFUNC(42)=pythonf(\DEFFUNC(43)=pythonf(\DEFFUNC(44)=FUNC(41)+FUNC(42)+FUNC(43)Evaluation of DEFFUNC(44) now looks like:As a third possibility to access these functions you can simply type pythons(\pythonf(\10. Script Editor for the Python interface in STRURELSTRUREL provides a complete environment to operate with Python scripts by an integrated Script Editor with a specially developed lexer powered by the Scintilla core. It features:%u2022 syntax colouring of engine keywords and STRUREL variables,%u2022 folding support with hot areas for collapsible nodes,%u2022 automatic detection of URL as a clickable link,%u2022 matching braces highlighting,%u2022 extended RTF export,%u2022 deep error tracing,%u2022 interior link with Stochastic Model,%u2022 numerical evaluation on the fly,%u2022 automatic restart of engine for a new run or for a changed content of the script.