which software is used for optical lens,
Can we use solid works software for creating Lens
Zemax, CodeV, OSLO is used for creating and simulating lens systems (sequential ray tracing). TracePro, LightTools, ASAP, FRED and also Zemax is used for non-sequential ray tracing/illumination design. There is usually an add-in for all of these to trace rays directly in the CAD software. It depends on the depth of analysis you require which one is the appropiate.
I think Zemax is good for ray tracing and all.