ARNative method for GenerateCode
generatemodel