getTransformedField method call from C++ script to extract data

Hi All,

I am trying to get the C++ script for extracting data from the odb to work with method getTransformedField. I am following link https://help.3ds.com/2018/English/DSSIMULIA_Established/SIMACAEKERRefMap/simaker-c-fieldoutputcpp.htm?ContextScope=all#simaker-fieldoutputgettransformedfieldcpp

An odb DatumCsys needs to be defined for this. Is there anyplace else where I can find more information on how this can be implemented? Or if anyone has done this before, a simple pseudocode may be helpful as well.

Abaqus