If you want to use a special editor to create your Python scripts, take a look at the following ones: Eclipse https://www.eclipse.org/ Notepad++ https://notepad-plus-plus.org/ PyCharm https://www.jetbrains.com/pycharm/ Python Tools for Visual Studio https://github.com/Microsoft/PTVS
Read MoreAuthor: Hans
A closer look at the script
Let us examine the example a bit closer. # Import Lexocad libraries import OpenLxApp as lx The import statement loads existing Python code from another file – a module. The Python binding to Lexocad is defined by modules. By importing a module you gain access to Lexocad’s functions through the API (Application Programming Interface). # […]
Read MoreQuick Start
Below is a very simple script. The easiest way to test and get it working: Start Lexocad. In the menu go to: Extra > Python > Python Console. Copy the script below and paste it inside the interactive console, eventually press the [Enter] key. # Create Block example # Import Lexocad libraries import OpenLxApp as […]
Read MoreOverview
Python is a programming language in which scripts for Lexocad are written. You do not need a separate Python installation: Python is implemented in Lexocad and runs out of the box. If you are new to Python, please read the official Python tutorial here: https://docs.python.org/2.7/tutorial/ Python scripts can be executed in Lexocad by writing the […]
Read MoreLexocad will migrate to Python 3.6
With the upcoming release of Lexocad 25.0 we will finally say goodbye to Python 2.7 and migrate to Python 3.6. With this move it should be much easier to integrate the libraries you need into our Python installation. For example the use of NumPy SciPy Pandas MatPlotLib should smoothly integrate into our Python environment. It […]
Read More