Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to use SIMCONNECT_DATA_XYZ structure ?

Featured Replies

Hi folk ! I can not find any example about this SIMCONNECT_DATA_XYZ struct.I want to read or transmit any data to/from sim use this structure , please tell me HOW ? It is a work ? Who are use it ?I read in C+ or Delphi or VB. Thanx.

EZdok software.

www.ezdok-software.com

  • Commercial Member
Hi folk ! I can not find any example about this SIMCONNECT_DATA_XYZ struct.I want to read or transmit any data to/from sim use this structure , please tell me HOW ?
The structure is clearly defined in the SimConnect header:// SIMCONNECT_DATA_XYZstruct SIMCONNECT_DATA_XYZ{ double x; double y; double z;};So, just define a structure of three doubles (64-bit floats), and pass its address where you'd normally pass the address of your single double or integer or whatever.RegardsPete

Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Well, to start with, the structure types can only be used with specific SimVar names (for the XYZ, there are around 10 that use that format, LATLONALT has about 5). Second, you would create a variable in your data structure using the full SimConnect data type name (ie "SIMCONNECT_DATA_XYZ myXYZVar;") and do one AddToDataDef call for that field using SIMCONNECT_DATATYPE_XYZ as the data type.Also note, some of the SimVar structure types (Waypoints, InitPosition) are only valid when used with SetDataOnXxx, they aren't associated with any readable variables and can't be used with RequestDataOnXxx.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.