In this series of articles, we’ll study the editing of scripts in the Python programming language for the Allplan software.
To allow you to follow these tutorials properly, I’m going to make a few assumptions…

1) Installing Allplan

First of all, I will assume that the Allplan software is correctly installed and up to date on your computer.

The proposed API is continuously developed, so to take advantage of all the features, the most recent version will be required.

Please note : in general, updates give access to a lot of things and fixes, so it’s highly recommended to have them even outside the API context.

2) Using Allplan

Secondly, I will assume that you have a minimum knowledge of the Allplan software.

The API is a tool that will allow us to call functions inside Allplan (creation of texts, volumes, exports in different formats, …). It’s important to understand these concepts well.

Don’t hesitate to approach your nearest commercial agency or an independent training center if support on the basic tools is necessary.

3) Programming

Finally, this blog is not intended to teach you the Python language broadly, a language that will be used in scripts (Python 3.11.4 in the current version of Allplan).

This language is one of the most widely used. It’s highly appreciated by its syntax and it’s encountered in many different fields.

We will rather focus on its use via the PythonParts API (Allplan’s latest generation API) whether for the creation of objects (2D and / or 3D), the analysis and the modification of elements, or links with external tools (spreadsheet for example).

Of course the functions will be explained in detail but, again, a minimum knowledge of writing code is fundamental.

Please note : although a simple text editor may be enough, I encourage you to use an Integrated Development Environment (IDE) such as Visual Studio Code or Pycharm for example, which will greatly help you for writing the scripts.


Submit a Comment

Objects3D V2.0

Next step for the modeling of our PythonPart “Reinforced Concrete Column”, today let's see how to configure the anchors of our 3D object. By anchoring I am particularly thinking of 2 types :...

Objects3D V1.0

New series in the PythonParts learning journey, let's delve into the modeling of a 3D object : a reinforced concrete column.1) GUI ScriptIn this example, we will set up the initial fields required...

Objects2D V3.0

Last step for this PythonParts example, I'll show you how to set up a legend for our object. This should include the following information : my object's name ; the name of a characteristic geometric...

Objects2D V2.0

In the previous article, we saw how to prepare our code in OOP, today let's see how to exploit its potential with this new example. Indeed, we are going to complete our PythonPart in order to...

Objects2D V1.0

We will build more complex objects on Allplan software, but first at all a word about Object Oriented Programming (OOP)...1) Object Oriented ProgrammingObject Oriented Programming (called OOP) is a...

HelloWorld V3.0

Last step for our HelloWorld script, we will see how to customize the rendering of our object.1) GUI ScriptBack in our palette, I first create a chapter to dissociate the geometric controls from...

HelloWorld V2.0

Previously, we learned how to create an object (a line with fixed length) via the PythonParts API. Today I'm going to show you how to set up handles for our HelloWorld script...1) GUI ScriptThe...

HelloWorld V1.0

HelloWorld is traditionally written to provide an example of a programming language. We will be no exception here with our first script's writing. The goal is simple, create a line with fixed...

Structure of PythonParts

Allplan is installed, your IDE is ready... perfect, let's see in detail how PythonParts work.1) Files' DescriptionTo work, a PythonPart needs at least 2 files : GUI File The interface file...