We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad Python API
About automating tasks in Archicad using the Python API.

Pull out element's coordinates by Python Snippets Plugin

galiaf_velikiy
Booster
Is it possible to Pull out the element's coordinates by Python Snippets Plugin? For example Lines, Polylines or maybe vertexes? I've found just GUID ID and nothing more... Thank you!
4 REPLIES 4
poco2013
Mentor
The short answer is no.

The Python experiment only returns the main structure of a limited number of elements such as walls, morphs, arcs, text, and zones and it does not return the needed auxiliary structures associated with them. So somewhat worthless at present. I hope to see a great improvement in version 24 but we'll see?

Keep in mind that the original Python Experiment was only issued to judge user acceptance and not as a practical application. It remains to be seen if Graphisoft will allocate the resources necessary to fully implement the API in Python. At present, it appears NOT? That's why it is important to convey your wishes directly to your local representative. Otherwise it may be 10 years before Python in Archicad is practical.
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
galiaf_velikiy
Booster
poco2013 wrote:
The short answer is no.

The Python experiment only returns the main structure of a limited number of elements such as walls, morphs, arcs, text, and zones and it does not return the needed auxiliary structures associated with them. So somewhat worthless at present. I hope to see a great improvement in version 24 but we'll see?

Keep in mind that the original Python Experiment was only issued to judge user acceptance and not as a practical application. It remains to be seen if Graphisoft will allocate the resources necessary to fully implement the API in Python. At present, it appears NOT? That's why it is important to convey your wishes directly to your local representative. Otherwise it may be 10 years before Python in Archicad is practical.
Thank you, Poco2013. I hope that we will have these functions in the next version.
Ralph Wessel
Mentor
Alternatively, you can get all this info through the ARCHICAD API.
Ralph Wessel BArch
Software Engineer Speckle Systems
poco2013
Mentor
Ralph wrote:
Alternatively, you can get all this info through the ARCHICAD API.
Absolutely. And that may still be a good idea to explore since even with the new Python version, a thorough understanding of the Archicad data structure(s) will invariably be necessary.

However, I think the intent of the OP was to question if the Python experiment will ever have any practical value as is yet to be implemented and if it is worth bothering about? Python’s obvious advantage is its ease of use and speed in programing. Particularity in comparison to Graphisofts’ C++ API which is overly cumbersome and complicated. The downside is, of course, again speed. A ‘long used’ saying is that interpreted Python is 5-10 times slower than C++. So, I don’t think CadImage has much to worry about. But, for short programs, a delay of a few seconds is tolerable
.

IMHO, the Python experiment is promising but not acceptable, at present, since it was demonstrated in the first Beta to have significant limitations and several “killer” bugs which has yet to be acknowledged by Graphisoft or even to accept input on.

Hopefully Graphisoft is working on making a viable product feature and not just some marketing “candy”.
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27