Search found 73 matches

by BenBaron
Mon Nov 04, 2019 3:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 5
Views: 3124

Re: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID

Hi guys,

just wanted to chime in that also with Prepar3D v4 SDK 4.5.13.32097 this doesn't seem to be fixed.

Greets,

Benny
by BenBaron
Mon Oct 14, 2019 9:31 pm
Forum: Software Development Kit (SDK) Questions
Topic: How to get all waypoints of flight plan
Replies: 1
Views: 1941

Re: How to get all waypoints of flight plan

Hi John, you can use the variables in the following link in conjunction with the ExecuteCalculatorCode() function of the PDKs IPanelSystemV400 interface to query the GPS system for a lot of flightplan data: https://www.prepar3d.com/SDKv4/sdk/panels_and_user_interface/gauges/references/gps_variables....
by BenBaron
Fri Oct 11, 2019 10:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 2579

Re: Flightplan data with the PDK

Hi adiemus, well...I am not super proficient with this stuff, but as I am able to do the following: ExecuteCalculatorCode("(>C:fs9gps:FlightPlanWaypointIndex, number)", nullptr, &waypointNo, nullptr) in order to set the current waypoint index of the GPS system And it actually changes the waypoint i...
by BenBaron
Fri Oct 11, 2019 5:55 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 2579

Re: Flightplan data with the PDK

Hi adiemus, well...I am not super proficient with this stuff, but as I am able to do the following: ExecuteCalculatorCode("(>C:fs9gps:FlightPlanWaypointIndex, number)", nullptr, &waypointNo, nullptr) in order to set the current waypoint index of the GPS system I would think that you should also be a...
by BenBaron
Sun Sep 29, 2019 3:44 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 2579

Re: Flightplan data with the PDK

Thanks Jonathan for the hint. I looked at the link you provided and compared it to the PDK documentation of the Panel System Service...while I could recreate the TacPack approach with it, I don't see the advantage coding-wise over just using ExecuteCalculatorCode() from within my module. They are wr...
by BenBaron
Sat Sep 28, 2019 7:42 am
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 2579

Re: Flightplan data with the PDK

Just as a follow-up: I know I can use ExecuteCalculatorCode() from the IPanelSystemV400 to retrieve flighplan data from the gps system, but this seems a little cumbersome to me...but if need be, I will go down this route, for now. Just looking for some confirmation that there actually is no other wa...
by BenBaron
Fri Sep 27, 2019 8:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 2579

Flightplan data with the PDK

Hi guys,

does anyone know a viable way to retrieve loaded flightplan data (esp. departure and destination ICAOs) via the PDK as well as getting notified if a new flightplan is loaded? Is this even possible, yet?

Thanks for your help.

Benny
by BenBaron
Sat Sep 21, 2019 2:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: Question on PDKs RenderingPlugin
Replies: 1
Views: 2005

Re: Question on PDKs RenderingPlugin

Hi guys,

can be disregarded. In the meantime I've found out that the renderer is also running on the main thread. So no problem.

All the best, Benny
by BenBaron
Mon Sep 02, 2019 8:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: Question on PDKs RenderingPlugin
Replies: 1
Views: 2005

Question on PDKs RenderingPlugin

Hi guys, just for clarification: is it safe (like e.g. thread-safe) to perform tasks unrelated to the actual rendering in the Render or PreRender methods? Which are thus called at the pace of the framerate? Like an IBaseObject's GetPosition() or GetProperty() methods? Maybe this might put a strain o...
by BenBaron
Wed Aug 28, 2019 5:04 pm
Forum: Software Development Kit (SDK) Questions
Topic: I cant get the IDISManagerV450.
Replies: 6
Views: 2821

Re: I cant get the IDISManagerV450.

Hi Reyad,

I assume you have P3D Professional Plus? As it states *Professional Plus Only* in the SDK.

All the best, Benny
by BenBaron
Sat Jul 06, 2019 12:26 pm
Forum: SimConnect Interface Questions
Topic: Cancel Flight Plan from SimConnect
Replies: 4
Views: 3085

Re: Cancel Flight Plan from SimConnect

Hi Fredo,

I guess this is indeed what he meant...easiest way would be to just try it out...pass in a nullptr as szFileName and see what happens :).

Greets,

Benny
by BenBaron
Sun Jun 23, 2019 5:04 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Using DIS Engagement Lines or Ribbons for Aircraft
Replies: 3
Views: 2618

Re: Using DIS Engagement Lines for Aircraft

Hi,

I don't know exactly what you want to achieve or what this DIS weapon stuff is about, but maybe the IObjectRendererV440 from the PDK would do you something good? It can render primitives into the P3D world and has a DrawLine() method. Maybe take a look at it?

All the best,

Benny
by BenBaron
Wed Jun 12, 2019 2:49 pm
Forum: Software Development Kit (SDK) Questions
Topic: Render-to-Texture at an ObjectWorldTransform
Replies: 2
Views: 2313

Re: Render-to-Texture at an ObjectWorldTransform

Hi guys, I got further with this...regarding the render-to-texture functionality: As I said, I am fairly new to using DirectX, the render pipeline and everything related. However, I can now render into a texture which is referenced in a .mdl. So far, so good, but now, I ran into the following issue ...
by BenBaron
Wed Jun 12, 2019 2:30 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Question about C# vs. C++ development in P3D
Replies: 3
Views: 1584

Re: Question about C# vs. C++ development in P3D

Hi, well...there is a managed layer available that lets you use C# as the language of your choice. Basically, just reference LockheedMartin.Prepar3D.SimConnect in your project and you are ready to interface with P3D via SimConnect. However, this is limited to an external program. So, if you wanted t...
by BenBaron
Wed Jun 12, 2019 2:17 pm
Forum: Software Development Kit (SDK) Questions
Topic: Regarding E:TIME OF DAY with PDK
Replies: 2
Views: 1113

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...

Go to advanced search