• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Search results

  1. M

    How to identify from bgl file, if airport has vors

    I need to identify if a given airport has vors from a prepar3d bgl file. How is this possible? Thank you
  2. M

    P3D v4 can PdkServices be invoked from processes outside of P3ds?

    Thank you very much. I have requested admin for a merge
  3. M

    Invoking PDK Services as COM Components

    I tried to accomplish this through ATL COM C++ server and client but encountered a read access violation exception upon calling P3D::Init. Is a call from the Prepar3d process the only way of invoking?
  4. M

    P3D v4 can PdkServices be invoked from processes outside of P3ds?

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

    Attempt to extract global pressure from weatherSystemService in a COM setting

    Hello, I have tried to retrieve the global pressure value from P3d v4 through it's weather service by attempting to access the IWeatherSystemv430 service outside of P3d. Code for my ATL COM server and client below: Could you please help me out with it? Thank you ATL COM server //...
  6. M

    P3D v4 can weather be implemented as a SIM object?

    Thank you. Yes that is true. I meant all examples in which COM objects have been created, these examples use them as SIM objects. If not as a SIM object which derives from the Base object (IBaseObjectV400), how else can I create a COM object that can provide weather parameters to a COM client...
  7. M

    P3D v4 can weather be implemented as a SIM object?

    Hello, I found that the PDK samples where COM objects are created (SimpleCar,SimpleAirplane etc) implement these as SimObjects. Can I also create a COM object like Weather which can be called from a COM client outside of PDK and make available the weather parameters through the IWeatherSystem...
  8. M

    P3D v4 creating a weather system COM object

    Hello, The COM objects created in PDK examples are identifed as Sim Objects and have entries in sim.cfg. If I need to create a COM object and access Weather System services do I have to: 1. Create a class factory to facilitate object creation 2. Implement the IWeatherSystem methods. If so, can I...
  9. M

    Accessing CLSIDs of PDK's Weather System services

    Thank you. In case I use the QueryService function, do I need to create an implementation of WeatherSystem interface, like some of the examples (SimpleCar,SimpleAeroplane.cpp) using the function have?
  10. M

    Accessing CLSIDs of PDK's Weather System services

    I see. Thank you. Then is it not possible for developers to create their COM objects; can it be done only internally?
  11. M

    Accessing CLSIDs of PDK's Weather System services

    Hello, Where can I access the CLSIDs of classes IWeatherStationV430 and IWeatherSystemV430 ? I can only find the corresponding interface declarations and IIDs (and SID) in the IWeatherSystem header file. Thank you
  12. M

    Invoking PDK Services as COM Components

    I see. Thank you. I am just a beginner. Is it possible to code a C++ COM server that exposes the 2 interfaces - IWeatherSystem and IWeatherStation - and invoke this server from a C# COM client?
  13. M

    Invoking PDK Services as COM Components

    Hello, As the IWeatherStation inherits IUnknown, can it be invoked as a COM component from C# code? Is this possible for IWeatherSystem too? How would one go about it? Thank you
  14. M

    pdk addon to display weather data

    Yes, this code worked. Thanks a lot
  15. M

    pdk addon to display weather data

    I am facing another difficulty. I am unable to call and use the IWeatherStation interface through the GetWeatherStation function. My code: if (weatherSystem != NULL) { P3D::IWeatherStationV430* weatherStation=nullptr; HRESULT station =...
  16. M

    pdk addon to display weather data

    Thank you so much. I found the file there. I will format the code in future
  17. M

    pdk addon to display weather data

    When the p3d application starts running
  18. M

    pdk addon to display weather data

    Hello, I attempted to make a small weather add-on which would write the variable values accessible through WeatherSystem interface to a text file. But I could not get it to work - while the addon is added, the text file is not created on load. Could you guide me on what i am missing? The c++...
  19. M

    Using Weather Station and Weather System services of PDK API

    Thank you. Can I build a C++ plugin which would write the weather data to a text file and a C# console app which would read the file and display the values?
  20. M

    accessing through STRUCT LATLONALT

    Thank you. You are right. My other doubt is for the line: simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "STRUCT LATLONALT", null, SIMCONNECT_DATATYPE.LATLONALT, 0, SimConnect.SIMCONNECT_UNUSED); Don't we put any units in the third parameter? is leaving it as null ok? Thanks
Top