Obtain TextGen from a node

Hi,

We are in the need of retrieving the text generated by TextGen inside a behavior's method. This was the fragment that was used to work until 3.4:

TextGenerationResult result = TextGen.generateText(node);

string content = (string) result.getResult();

 

TextGenerationResult is no longer available in MPS 3.4 and the generateText method has been removed.  What is the suggested alternative?

Thanks,

manuele

 

0
1 comment
Avatar
Permanently deleted user

OK, found it.

I guess

string content = TextGeneratorEngine.generateText(node);

will do it.

0

Please sign in to leave a comment.