Changing Change Marker name via python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-03
08:05 PM
- last edited on
2021-09-15
09:55 AM
by
Noemi Balogh
I'm running around this task the whole day and there is no working solution found.
I need to find all selected API_ChangeMarkerID = 4 items and change the name of each trough loop.
Plus, in the process I went from AC23 to AC24 and all the code from the previous version just stopped working at all (literally,what was the purpose to change it so drastically?)
offtop, letter of love to graphisoft:
BTW, Archicad's reference guides suck. All of them, especially the API one. Graphisoft, go look at webdev and see how it should be done. Your reference isnt indexed by google. Not mentioning the inner search being as crappy as it could be. Looks like you all are still in 80s. The GDL editor without line numbers, what? Ok, I use sublime, whatever. But come on, we pay so much for your product, you could've done better.
Solved! Go to Solution.
- Labels:
-
Automation (Python or JSON)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-04 01:52 AM
But GetAllElements() doesn't give you anything right now which isn't a model element, so I don't see a way to query the change markers...

You're right, the documentation is horrible at the moment. But it can only get better! And I strongly assume GS will improve the documentation, once the new API has settled in.
The change (more like a complete rehaul) of the API was made so we can actually be more flexible. I think the JSON interface is really powerful. Or .... will be. Let's see how it turns out.
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-04 01:52 AM
But GetAllElements() doesn't give you anything right now which isn't a model element, so I don't see a way to query the change markers...

You're right, the documentation is horrible at the moment. But it can only get better! And I strongly assume GS will improve the documentation, once the new API has settled in.
The change (more like a complete rehaul) of the API was made so we can actually be more flexible. I think the JSON interface is really powerful. Or .... will be. Let's see how it turns out.
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-06 03:51 PM
Maybe it could be done through C++? Any ideas on how to set it up?
Maybe there is any example of a working program or a tutorial?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-07 10:53 AM
IvanIvan wrote:Yes, this is possible through the C++ API. Take a look at the
Thank you for answer!
Maybe it could be done through C++? Any ideas on how to set it up?
Maybe there is any example of a working program or a tutorial?
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-11 12:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-11 10:22 PM
Ralph wrote:ahah, it all went too complicated: i compiled it without any significant errors the way it says here: https://helpcenter.graphisoft.com/knowledgebase/25738/ (i'm trying to fix the “This add-on cannot be validated. Please contact the distributor.”)...
IvanIvan wrote:Yes, this is possible through the C++ API. Take a look at the
Thank you for answer!
Maybe it could be done through C++? Any ideas on how to set it up?
Maybe there is any example of a working program or a tutorial?Do_ChangeMarker_Editfunction in the file "Element_Modify.cpp" of the example project "Element_Test". The name of the change marker is stored in API_Element.changeMarker.changeName
but the ac23 doesnt want to load it, it says: “The selected file is not a All Add-Ons file. Please select a valid All Add-Ons file.” The original instruction is unclear, as always.
Now as i changed the hex in the config file, it says “This add-on cannot be validated. Please contact the distributor.” wtf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-11 10:29 PM
IvanIvan wrote:If you're building one of the example projects, are you running Archicad in demo mode to test it? The example add-ons have no developer ID, so they only run in demo mode, i.e. they won't run in a licensed AC session.
the ac23 doesnt want to load it, it says: “The selected file is not a All Add-Ons file. Please select a valid All Add-Ons file.” The original instruction is unclear, as always.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-11 10:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-11 10:51 PM
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-11 11:07 PM
Thanks again! I hope that helps anyone else.
——
And as always, GRAPHISOFT, make proper instructions and reference guides — like Adobe, eg. Or you'll lose.