2025-05-15
01:54 PM
- last edited on
2025-05-19
12:32 PM
by
Laszlo Nagy
I created a "proof of concept" with claude AI for automatic numbering the element ID using proximity to a polyline.
How to use the script?
-Place the gdl object "AutomaticNumberingPolyline" (This is a renamed version of SinceV6 polyline object that you can find here ) on the floor plan.
-Select the object "AutomaticNumberingPolyline" and the elements to number.
-Launch the script (Python palette or double click on the script (The script will work on the first opened archicad instance)
-When asked, Enter the starting number for the first element
-Done
here is a video example (Please forgive my English, we're not very well known for our linguistic talents in France.^^):
How to install the script?
-Install the last version of Python
-Install the last version of the Tapir Plugin (Opensource plugin that gives access to new python commands in archicad that are needed for this script)
(Optionnal for easy use if you have a subscription or SSA)
-How to show the python palette
How does the script work?
1-Recover the coordinates of a polyline object coordinates stored in the object's GDL parameters and retrieved with the corresponding Tapir command
2-Recover the C centers of the 2D bounding boxes of each object to be numbered O
3-Find the nearest point P on the polyline for each C-center
4-Determine the relative position of each point P along the polyline
5-Sort objects O according to this position
6-Number the objects in this order
Thanks a lot to the Tapir team, especially @Tibor Lorantfy, @Viktor Kovacs, and @jorgebeneitez.
2025-07-01 01:36 PM
The latest script is included in the last tapir installation. The name of the script is "AutomaticNumberingBasedOnPolyline" and you can see it in your screenshot of the tapir palette. You just need to select your elements + 1 polyline and launch the script with the triangle.
2025-07-01 08:15 PM
HI , ,i run the tapir addon but get this windows , im doing something wrong
2025-07-01 08:20 PM
Did you install the last version of python?
2025-07-01 08:22 PM
yes , and add the tapir extension
2025-07-01 10:42 PM
Now it works ok!, just needed to add python to path!
2025-08-05 02:39 AM
Very nice tool!
Is there a python script like this, or the script can be modified, for auto-numbering the zone numbers?
Architect | Graphisoft Certified BIM Manager
ArchiCAD 29 JPN/USA/INT | Windows 11
2025-09-24 04:20 PM
Hello there,
To turn on the python palette, Archicad 27 requires me to have the SSA subscription, for which I have no way to obtain, since I use one of my company's shared licenses.
I have set up Python, Tapir, the numbering polyline, and the objects, but running the py script from the desktop seems to fail.
I have used instructions and the script from this link:
https://community.graphisoft.com/t5/Graphisoft-Insights/Tip-of-the-Month-Auto-number-elements-using-...
Is there a way to make it work?
2025-09-24 04:23 PM
What error message appears?
Did you use Tapir palette?
2025-09-24 05:12 PM
I haven't used Tapir palette at first, I didn't even notice it appeared.
I have tried it now, and it didn't work at first, but after installing uv, uvw, uvx, adding path in sysdm.cpl Environment variables, and checking it is connected in powershell, Tapir finally works.
Now I have this problem: it doesn't register the Automatic Numbering Polyline, even though its obviously there and selected.
I have also tried to add the python script SCRIPT_AutomaticNumberingBeta2.py into Tapir with + button, but it crashes ArchiCAD when selected.
2025-09-24 05:38 PM
I think now you need to use a polyline and not the "polyline" object