Toolkit JLink RunMacro mapkey length limit?
Is there a limit to the length of the mapkey that I can run in the BaseSession.RunMacro(String mapkey) command in JLink toolkit?
I have code that dynamically generates a mapkey to extend its functionality. I group all the mapkey parts that it generates together in one long String. Then I run that macro right before returning control to Creo. I decided to do it this way, to make the mapkey run sequentially.
Depending on the number of parts in the assembly, this mapkey becomes long. Very long. Creo hangs when control is returned to it. I can only force quit Creo at that point. The debugger runs until the end of the code and then returns control to Creo, and it starts to hang. On shorter mapkeys, it is not a problem. Control returns to Creo. The mapkey gets executed. The code functions.
The problematic mapkey is 4000 lines and 200 000 characters long. Is it known what the limit is? Either a formal limit or a practical limit? Then I could decide when to develop or use a workaround.
Creo version is 8.0.8.0. I use JLink, the free version. My program runs synchronous.

