Thank you both for you replies, it's helped and I'll have a play with the Open SCAD as I'm a bit of a coder at heart.