function geommodel(event)

frame=event;

length=frame.get('length').getValue;

g1=solid1([0,str2num(length)]);
s.objs={g1};

fem.draw=struct('s',s);
fem.geom=geomcsg(fem);

storedata(frame,fem);

parent=frame.get('axis').getHandle;
cla(parent);
geomplot(fem,'parent',parent);

