can PdkServices be invoked from processes other than P3ds?

mer
Posts: 25
Joined: Fri Aug 31, 2018 10:52 am

can PdkServices be invoked from processes other than P3ds?

Postby mer » Mon Oct 01, 2018 10:57 am

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

Clifton Crane
Lockheed Martin
Posts: 1044
Joined: Tue Sep 25, 2012 2:34 pm

Re: can PdkServices be invoked from processes other than P3ds?

Postby Clifton Crane » Mon Oct 01, 2018 7:52 pm

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.
Clifton Crane
Prepar3D® Software Engineer Sr.

MicMac44
Posts: 21
Joined: Fri Feb 15, 2019 5:48 pm

Re: can PdkServices be invoked from processes other than P3ds?

Postby MicMac44 » Mon Mar 18, 2019 5:09 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.
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?

JB3DG
Posts: 479
Joined: Mon Jan 09, 2012 6:44 pm

Re: can PdkServices be invoked from processes other than P3ds?

Postby JB3DG » Mon Mar 18, 2019 7:13 pm

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

MicMac44
Posts: 21
Joined: Fri Feb 15, 2019 5:48 pm

Re: can PdkServices be invoked from processes other than P3ds?

Postby MicMac44 » Wed Mar 20, 2019 3:11 pm

Do you have an example I could look at that demonstrates how to request those notifications?


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 10 guests