Hi guys,
can the variable "E:TIME OF DAY" which is referenced here: https://www.prepar3d.com/SDKv4/sdk/refe ... ables.html, be retrieved via PDK's GlobalDataService, like the other time variables on that page?
Didn't find a way to do so, so I am currently using PanelService's ExecuteCalculatorCode() method to retrieve it, but find it a but unintuitive.
All the best,
Benny
Regarding E:TIME OF DAY with PDK
-
- Lockheed Martin
- Posts: 1207
- Joined: Tue Sep 25, 2012 2:34 pm
Re: Regarding E:TIME OF DAY with PDK
Hi Benny,
There is a function called GetGeneralTimeOfDay. It is located in IGlobalData.Legacy.h which is the IGlobalDataV400 interface. You should still have access to it from the IGlobalDataV430 interface, however.
Hope this helps.
There is a function called GetGeneralTimeOfDay. It is located in IGlobalData.Legacy.h which is the IGlobalDataV400 interface. You should still have access to it from the IGlobalDataV430 interface, however.
Hope this helps.
Clifton Crane
Prepar3D® Software Engineer Sr.
Prepar3D® Software Engineer Sr.
Re: Regarding E:TIME OF DAY with PDK
Thanks Clifton for the quick reply.
Indeed, it is working as you described. Maybe you can update the documentation on this matter, as there is only a notice on the SDK page, that P3D::IGlobalDataV430 inherits IGlobalDataV400, but not what IGlobalDataV400 exactly entails :).
Thanks for your help.
All the best,
Benny
Indeed, it is working as you described. Maybe you can update the documentation on this matter, as there is only a notice on the SDK page, that P3D::IGlobalDataV430 inherits IGlobalDataV400, but not what IGlobalDataV400 exactly entails :).
Thanks for your help.
All the best,
Benny