ā2021-11-08
01:15 AM
- last edited on
ā2024-09-26
01:58 PM
by
Doreena Deng
Hi, Iāve had a lot of time struggling searching for a way to read the data of a text list into a gdl object to output that info into a table like a schedule with more complex data and format that schedules canāt do.
Iāve spend a lot of time trying with gdl data I/O writing the source object data to a external file and reading that data into another gdl object but canāt delete the outputted record if the object is deleted, so cant update the file.
I see that the easiest way is to extract data from a list with a read txt or data addon or a simple request.
the only posible solution is to export the list data and then read it from the gdl object but I donāt think we have to get through al that process being the data I want just right there.
feels like is a very simple task but canāt find the way, Iāll appreciate your help.
regards.
Solved! Go to Solution.
ā2021-11-09 08:00 PM
Thanks Peter thatās all I wanted to know.
I already do it with I/o addons but itās very rare that we have to export the data (out of ac) and then read from that (in to ac) again even knowing the data is inside ac, this causes a non updated data if we change something in ac.
Hope we get this improve in next versions.
Regards!
ā2021-11-08 05:00 AM
Expressions ?
Functions in Expressions | User Guide Page | GRAPHISOFT Help Center
ArchiCAD 25 7000 USA - Windows 10 Pro 64x - Dell 7720 64 GB 2400MHz ECC - Xeon E3 1535M v6 4.20GHz - (2) 1TB M.2 PCIe Class 50 SSD's - 17.3" UHD IPS (3840x2160) - Nvidia Quadro P5000 16GB GDDR5 - Maxwell Studio/Render 5.2.1.49- Multilight 2 - Adobe Acrobat Pro - ArchiCAD 6 -25
ā2021-11-08 10:46 AM
If your source data is one object only, do it with a label.
ā2021-11-08 03:25 PM
Hi Steve, thank for your response but I think I know how to use expressions (Iām still a nobie) and canāt find the solution there, I think thereās got to be a request or I/o solution for this.
regards!
ā2021-11-08 03:34 PM
Thank you Peter, but no, my data source comes from multiple objects with property scripts in each of them to output data to a single list for merging all like in a schedule.
Now I just need my new gdl object to read that list to create a āscheduleā object.
Sorry for my misunderstanding, regards!
ā2021-11-09 09:20 AM
It is not possible to collect data about all GDL objects from GDL, only an add-on can do that.
You could also try to set up a graphical list, but it is not easy. There should be a PDF about listing in the installed Archicad folder under Documentation.
ā2021-11-09 10:29 AM
I use the following scheme - read information from an object with the COMPONENT command, displaying information using Lists/Components and saving the resulting text document. Further reading is done with standard GDL Text I / O Add-On functions
Industrial Architect and Structural Design Engineer, developer of free addon for sync GDL param and properties
ā2021-11-09 08:00 PM
Thanks Peter thatās all I wanted to know.
I already do it with I/o addons but itās very rare that we have to export the data (out of ac) and then read from that (in to ac) again even knowing the data is inside ac, this causes a non updated data if we change something in ac.
Hope we get this improve in next versions.
Regards!
ā2021-11-09 08:12 PM
Yep, that the way I do it, itās just that itāll be better to have a better alternative for reading from data inside ac without having to export and read from external file since this is not updatable if an object is changed.
Also tried writing directly to an external txt file and reading at same time but canāt have the ability to update data because if you delete objects it doesnāt in the txt file.
Hopefully thereās a read or request data from a list solution further or an automatically deletion from db if an object is deleted in ac.
Thanks for the help, regards!