2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2021-11-08
01:15 AM
- last edited on
2023-09-11
09:41 PM
by
Daniel Kassai
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
Structural 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!