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

Setting Oil Quantity with Python SimConnect

Hi All

I wonder if anyone can point me in the right direction? I'm pretty new to Python and SimConnect so please bear with me if I have glaring errors.

I'm trying to set the ENG_OIL_QUANTITY:1 on the Bonanza in MSFS but this doesn't seem to be working. I'm using the Python SimConnect library from GitHub (https://github.com/odwdinc/Python-SimConnect). I've been able to retrieve and set other variables so I'm not sure if I just can't set the oil level.

This is my code so far. Many thanks for any pointers! :)

#Import Modules
from SimConnect import *

# Create SimConnect link
SimConnect = SimConnect()
# Create Aircraft requests
AircraftRequests = AircraftRequests(SimConnect)

# Engine Management
TotalOil = AircraftRequests.get("ENG_OIL_QUANTITY:1")

newAmount = 0.9
setOil = AircraftRequests.set("ENG_OIL_QUANTITY:1", newAmount)
TotalOil = AircraftRequests.get("ENG_OIL_QUANTITY:1")

When I print the result of setOil this returns true.

Many thanks for any help!

Last edited:
Yea, did a lot more digging after posting and simconnect can't set any oil quantity, however am I right in thinking that the PA-28R Arrow III from Just Flight simulates oil use? I've dug into their code but it looks like this is behind WASM and I have no idea where to start there :)