Hi, Can we run Solidworks and print drawings from Windows service? We want to develop an windows service and prints the drawing at regular intervals without logging into the computer. So is it possible to do so? Any help on this highly appreciated. We are targeting Windows server 2012 and Solidworks 2014. Thanks in advance Nag
SolidworksApi macros
Why don't you use Task Scheduler for that.
It will not run Solidworks when the user is not logged into the system. As our printing process need to be open Solidworks and print to PDF. So any other option?
No, the system needs to be running only and no user interaction required as you can set the time schedule in the task scheduler. You can set the job to run once or repeatedly.
Can you launch Solidworks from there? When no user logged in ?
The system should be running and with task scheduler also running. Then TS would automatically start the SW, do the job and close.
For e.g. You can leave the system running while leaving office in evening and set up TS to work in night
Thanks for your reply. As per my understanding to run an application with user interface (Solidworks) there should be a user logged in. Otherwise task scheduler can not run the Solidworks in Session 0 where user interface is not permitted. So under what login TS launch Solidworks?
The system should be running. Once you set up the task in Task Scheduler, there is no need for user interaction. Please check the Task Scheduler help files for more details
According to S-038036 of the SW Knowledgebase the SolidWorks task scheduler is installed as a service, so it should be possible to run without a logged in user. But than the computer needs to have access to the SolidWorks files.