add support for cad

add support for cad  to generate graphic file