Source Code for Siemens :: Generated from the script

Hello,
It is possible to generate some source code for Siemens blocks (SCL/STL) language using with script, if it possible please share sample code and steps to be done.

Thanks and regards,

I won't say this is impossible. But I don't think anyone will have a step by step tutorial either.

def not something supported on the Ignition side.