Instead why not create multiple LineString objects at design time Set the Visible to false and set it to true when you need them. If you do that, you can
use a loop procedure to iterate through a text file that contains coordinates like these ( [[43.4857,3.3202],[43.4857,3.3202],[43.4856,3.32],[43.4855,3.3195],[43.4863,3.3192],[43.4868,3.319]]\n[[43.4845,3.3209],[43.4846,3.3208],[43.4849,3.3207],[43.4852,3.3205],[43.4854,3.3204],[43.4856,3.3204],[43.486,3.3202],[43.4864,3.32]] ) and populate the data in each LineString, set it Visible, then post each to your Map. That should be relatively 'easy' to do with blocks.
Edit: Code something like this for two traks

Each trak is placed in quotes (" ") in a Text file like this "[[43.4857,3.3202],[43.4857,3.3202],[43.4856,3.32],[43.4855,3.3195],[43.4863,3.3192],[43.4868,3.319]]","[[43.4845,3.3209],[43.4846,3.3208],[43.4849,3.3207],[43.4852,3.3205],[43.4854,3.3204],[43.4856,3.3204],[43.486,3.3202],[43.4864,3.32]]" . There are two LineString objects placed on the Map (LineString1 and LineString2)
Add more LineString objects if you need to display more traks.
Regards,
Steve