Hello,
Is there any way to access scenario and environment parameters of Prepar3d (such as global temperature,visibility etc) by invoking PDk's services from outside of Prepar3d?
Normally we write plugins with DLLStart and stop methods that Prepar3d calls. If we want a console application or some other caller, how can we expose these services to them?
Thank you
can PdkServices be invoked from processes other than P3ds?
-
- Lockheed Martin
- Posts: 1207
- Joined: Tue Sep 25, 2012 2:34 pm
Re: can PdkServices be invoked from processes other than P3ds?
Hi mer,
Currently the PDK pointer is only available to DLL's such as PDK plugins or gauges.
However, it should be possible for your executable to be able to communicate with a PDK based DLL using SimConnect calls such as SimConnect_CreateClientData and SimConnect_SetClientData.
This would allow an external application to transmit data to a PDK based C++ plugin over SimConnect where the plugin could then pass data to/from P3D.
Currently the PDK pointer is only available to DLL's such as PDK plugins or gauges.
However, it should be possible for your executable to be able to communicate with a PDK based DLL using SimConnect calls such as SimConnect_CreateClientData and SimConnect_SetClientData.
This would allow an external application to transmit data to a PDK based C++ plugin over SimConnect where the plugin could then pass data to/from P3D.
Clifton Crane
Prepar3D® Software Engineer Sr.
Prepar3D® Software Engineer Sr.
Re: can PdkServices be invoked from processes other than P3ds?
I know it's been awhile since this post was made so hopefully you can dust off the cobwebs! I'm wondering how specifically you would grab the data in the PDK add-on after setting the client data in a SimConnect project?Clifton Crane wrote: ↑Mon Oct 01, 2018 7:52 pm
However, it should be possible for your executable to be able to communicate with a PDK based DLL using SimConnect calls such as SimConnect_CreateClientData and SimConnect_SetClientData.
This would allow an external application to transmit data to a PDK based C++ plugin over SimConnect where the plugin could then pass data to/from P3D.
Re: can PdkServices be invoked from processes other than P3ds?
The dll with the PDK integrated would require a SimConnect instance which would request notifications if changes are made to the client data area.
Jonathan Bleeker
Milviz systems dev
Formerly known as Naruto-kun
Milviz systems dev
Formerly known as Naruto-kun
Re: can PdkServices be invoked from processes other than P3ds?
Do you have an example I could look at that demonstrates how to request those notifications?