[Developer API] How I can get data from Schedules?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-03 08:10 AM - last edited on 2022-10-04 04:50 PM by Daniel Kassai
How do I get this data?
- Labels:
-
Add-On (C++)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-03 04:13 PM
AC 26, macOS Monterey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-03 07:41 PM
It is necessary to receive numbers in dynamics directly from Schedule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-03 10:55 PM
AC 26, macOS Monterey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-04 10:38 AM
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-04 02:22 PM
I am asked to read Schedule for use in C ++ scripts in ARCHICAD (LabPP_Automat).
Otherwise, users have to do monkey work - to collect data twice - in Schedules and in the script.
It would be great if they get into the program right away, like:
int main ()
{
double dResult1, dResult2;
ac_request ("get_schedule_result", "My Schedule1", dResult1);
ac_request ("get_schedule_result", "My Schedule2", dResult2);
dResult3 = dResult1 + dResult2 ...
cout << dResult3;
...
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-04 05:38 PM
Tsepov wrote:Could you please give an example for dResult?
It's not very good(.
I am asked to read Schedule for use in C ++ scripts in ARCHICAD (LabPP_Automat).
Otherwise, users have to do monkey work - to collect data twice - in Schedules and in the script.
It would be great if they get into the program right away, like:
int main ()
{
double dResult1, dResult2;
ac_request ("get_schedule_result", "My Schedule1", dResult1);
ac_request ("get_schedule_result", "My Schedule2", dResult2);
dResult3 = dResult1 + dResult2 ...
cout << dResult3;
...
}
Thanks, Akos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-04 08:44 PM
string svalue = sprintf("%0.3f",dResult);
// We can put it to Excel
excel_attach();
excel_select_range("A1:A1");
excel_putstrvalue("My comment");
excel_select_range("B1:B1");
excel_putstrvalue(svalue);
excel_detach();
// And can put to autotext
ac_request("autotext","set","Building plot S",svalue);
// and so on...
Full work script text - in attachment
And on YouTube
Not sure if I can link to a YouTube video here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-18 06:27 AM
But I can not yet access the total Schedules values (
Is it really impossible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-12-18 07:16 AM
But as far as I know, schedules are just a list of criteria that search for certain elements and then output required values.
I don't think there are any values saved in a schedule itself, so your API will need to do the same search for elements to retrieve the values - so doing it twice as you say.
Or are you saying you want to access the schedule criteria rather than creating that twice?
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