We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-10-05 05:59 PM - last edited on 2024-09-16 02:19 PM by Doreena Deng
If Addons A create module data name 'AA' in project file P, then can Addons B in same file project get module data name 'AA' with ACAPI_ModulData_Get()?
2023-10-06 07:40 AM - edited 2023-10-06 07:46 AM
I reeeeely hope its not possible to read Moduldata from another Add-On 😄
"Data sections are identified uniquely by the add-on’s modul ID (‘MDID’) and an optional modul name string. This means the one data per add-on limitation of previous versions has been dissolved. "
since you cant start two add-ons with the same mdid id, this should be impossible.
i did not try it but my understanding ist, that modul data is saved in a file that is in the add-on folder. theoretically you could write your own interpreter of that file... would be a awful hack but could work.
the documentation states about deleting old modul data:
APIData
subfolder.but like i said, that would be an awful hack...
if i had to implement a datashare between two addons i would do one of the following:
1. Make that the addon looks from the outside as two addons and are in fact just one apx
2. use the communication manager to send data between the two add-ons.
Important: Moduldata ist legacy. You should use AddOnObjects!
from the documentation:
"This is a legacy technology, please use Add-On Objects instead."
Old:
https://graphisoft.github.io/archicad-api-devkit/group___modul_data.html#details
New:
https://graphisoft.github.io/archicad-api-devkit/group___add_on_object.html