cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Python API - Layers

dushyant
Booster
Hi,
Is there any way to access the layers in Archicad using the Python API?
1 ACCEPTED SOLUTION

Solution
greg_lupo
Booster
dushyant wrote:
Hi Tibor,

As of now, I need to:
1. Check the layer of the elements (and filter out elements of a specific layer)
2. Change the layer of the elements (based on their classification)
Ad.1 It is possible through Built-in Property of elements: Model_View_LayerName
Ad. 2 not possible

View solution in original post

4 REPLIES 4

Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

Currently (AC24.3010) it's not available via Python API.
Retrieving information about layers and layer combinations is on our backlog, we started to work on it.

Can you specify please what do you want to achieve with layers in your python script?
Which information of layers do you interest most?
Do you want to modify them?

dushyant
Booster
Hi Tibor,

As of now, I need to:
1. Check the layer of the elements (and filter out elements of a specific layer)
2. Change the layer of the elements (based on their classification)

Solution
greg_lupo
Booster
dushyant wrote:
Hi Tibor,

As of now, I need to:
1. Check the layer of the elements (and filter out elements of a specific layer)
2. Change the layer of the elements (based on their classification)
Ad.1 It is possible through Built-in Property of elements: Model_View_LayerName
Ad. 2 not possible

poco2013
Advisor
Without the ability to modify or create entities within Archicad in Python, the Python API offers no advantages over the C++ Add-Ons. This is directly contrary to the wildly successful ver 23 experimental API which was enthusiastically received. If Graphisoft has decided to divert from what was promised in the 23 version, they should do us the courtesy of so advising us of their future plans for the Python API?
Gerry



Windows 10 - Visual Studio 2019; ArchiCAD 26

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!