How to access scoped LVars (L:1:) with SimConnect

How do you get the ID of the scoped L var? Does fsVarsGetAircrafVarId() or fsVarsGetRegisteredNamedVarId() return a valid ID for L:1:FOO? Haven’t tried it, but…

(I’m not even clear on which one of those to query for L var names, which are called “named” vars in Gauge API, eg. check_named_variable() while A vars are called “aircraft” vars, eg. get_aircraft_var_enum().)

This was my expectation also but at the moment the ObjectID parameter is useless.

It will take data definitions with L:1 vars but won’t set them when executed.
You cant use Z vars or O vars in the data definition, this will throw an exception.

you can put literally any value as the ObjectId and it will still behave as if it was SIMCONNECT_OBJECT_ID_USER