Meet the 3D Cocooner from Festo: a robotic system that can spin complex structures in space. It uses a UV-curing resin to turn soft thread into a sturdy rod. The system comes with a high-speed handling system that can be controlled precisely in the space.
The above video shows how the 3D Cocooner robot performs. As you can see, it can produce complex structures similar to natural structures like a cocoon. More information is available here.