Does the docking station have it's own (or externally attached) graphics card? If yes, what type?
What graphics card does the Lenovo have installed?
If it's the Intel HD Graphics 3000 you may be out of luck. You could try different drivers & hope for the best.
If it's a Quadro 1000M or 2000M you may need to disable the nVidia Optimus functionality. See https://forum.solidworks.com/message/373236#373236 for more details.
I know nothing of your hardware so wonder if the problem is related to SW thinking it is no longer in its licensed environment if something in the docking station formed part of that environment.
I suspect John is right. You probably have a network license and when your laptop is undocked it is no longer connected to the network. If that's the case and you want to use your laptop for SW when it's not connected, then you will need to borrow a license when you are connected. (All Programs > SolidWorks > SolidWorks Tools > SolidNetWork License Manager > License Borrowing tab.)
Kelvin you were correct, the onboard video card must have been trying to overtake the Quadro 1000 Card.
Thank you very much