Thanks Geert, the code below more or less does the job. Ideally I would like role path filled (instead of stroked) with the lines drawn but I do not seem to get this to work.
setpencolor(1,1,1);
setpenwidth(2);
setfillcolor(255,255,255);
/*Component part*/
startpath();
moveto(10,10);
lineto(10,0);
lineto(90,0);
lineto(90,100);
lineto(10,100);
lineto(10,70);
moveto(10,50);
lineto(10,30);
endpath();
strokepath();
/*fillpath();*/
startpath();
rectangle(0,10,30,30);
rectangle(0,50,30,70);
endpath();
strokepath();
/*fillpath();*/
/*Role part*/
startpath();
moveto(95,10);
lineto(50,10);
arcto(40,10,60,60,50,25,50,75);
lineto(95,60);
endpath();
/*strokepath();*/
fillpath();
startpath();
ellipse(90,10,100,60);
endpath();
fillpath();
/*strokepath();*/