Add property setting information to existing elements in Archicad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-09
02:58 PM
- last edited on
ā2023-05-11
11:02 AM
by
Noemi Balogh
I can extract property settings information from existing AC elements and create new elements with custom property settings information in GH, but I don't how how to add more information to existing AC elements via the AC-GH connection
AC 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-10 12:28 PM
AC 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 03:03 AM
Erick wrote:I don't know.
Anyone? At least an "I don't know"![]()
But I guess that doesn't really help you.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 04:33 AM
You can run Python scripts within GH and this script can write to existing properties. But Python is quite limited in Archicad and it appears that Graphisoft has reneged on its promises to make the Python API viable? As, Python has no capability to create or set elements or manipulate their parameters.
As of version 25, Python can communicate with API add-ons and transfer commands and parameters. You would, of course, have to also create and install the corresponding receiving Add-on to do the actual commands. However, if you just want to set existing properties, Python can do this by itself, but not much else.
IOW: this approach (Python) does not make much sense as it is probably more trouble than worth, but you should be aware if you have no other option.
Windows 11 - Visual Studio 2022; ArchiCAD 27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 10:00 AM
Erick wrote:
Is this possible to do in the AC-GH connection?
I can extract property settings information from existing AC elements and create new elements with custom property settings information in GH, but I don't how to add more information to existing AC elements via the AC-GH connection:?
Generally, the Archicad-Grasshopper Connection CAN create new elements in Archicad, and modify the elements it created.
Unfortunately, at this point, it CAN NOT modify existing (already created/placed) elements in Archicad.
This capability has been wished for several times in the past by users.
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 11:10 AM
AC 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 11:11 AM
LaszloNagy wrote:Thanks a lot for the answer Laszlo
Erick wrote:
Is this possible to do in the AC-GH connection?
I can extract property settings information from existing AC elements and create new elements with custom property settings information in GH, but I don't how to add more information to existing AC elements via the AC-GH connection:?
Generally, the Archicad-Grasshopper Connection CAN create new elements in Archicad, and modify the elements it created.
Unfortunately, at this point, it CAN NOT modify existing (already created/placed) elements in Archicad.
This capability has been wished for several times in the past by users.
AC 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 11:32 AM
poco2013 wrote:Thanks a lot for the answer. I don't know how to do this in Python (yet
FYI:
You can run Python scripts within GH and this script can write to existing properties. But Python is quite limited in Archicad and it appears that Graphisoft has reneged on its promises to make the Python API viable? As, Python has no capability to create or set elements or manipulate their parameters.
As of version 25, Python can communicate with API add-ons and transfer commands and parameters. You would, of course, have to also create and install the corresponding receiving Add-on to do the actual commands. However, if you just want to set existing properties, Python can do this by itself, but not much else.
IOW: this approach (Python) does not make much sense as it is probably more trouble than worth, but you should be aware if you have no other option.
AC 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-11 04:21 PM
It is indeed the way to go when you want to change existing elements. E.g. giving all certain rooms a specific property value, or changing classifications based on property values with just one click. However some Python knowledge would be good as it might be a bit hard to get into it as there ain't much documentation and the sample files do not go that much into the detail.
And yes, seems like there is not much developement on this front again, and as we know GS I would not bet any money on it that there ill me a boost in functionality in the near future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2021-08-25 01:33 PM
JSN wrote:Sorry for answering so late, I didn't see your answer. Thanks for the tip, I'm already started looking at it
https://archicadapi.graphisoft.com/getting-started-with-archicad-python-connection
It is indeed the way to go when you want to change existing elements. E.g. giving all certain rooms a specific property value, or changing classifications based on property values with just one click. However some Python knowledge would be good as it might be a bit hard to get into it as there ain't much documentation and the sample files do not go that much into the detail.
And yes, seems like there is not much developement on this front again, and as we know GS I would not bet any money on it that there ill me a boost in functionality in the near future.
AC 25