Create a cylinder model and make sure the bottom
end is at the centre origin in MED then use the
following codes to control the cable(cylinder model)
up and down :

var speed = 0.1; // play with it

my.scale_z += speed * time // when elevator going down
my.scale_z -= speed * time // when going up

Also, move the elevator as the same speed to catch up the cable.