Writing CAD formats