Windows Service - Solidworks

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
Answers 8
DG
DG 2015-08-29 Best Answer

​Why don't you use Task Scheduler for that.

NK
NK 2015-09-01

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?

DG
DG 2015-09-01

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.

NK
NK 2015-09-01

Can you launch Solidworks from there? When no user logged in ?

DG
DG 2015-09-01

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

NK
NK 2015-09-01

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?

DG
DG 2015-09-01
<p class="shortdesc" style="margin-top: 0.5em; margin-bottom: 0.5em; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000;">The SolidWorks Task Scheduler lets you set up tasks to perform at a future time. For example, if you need to perform a resource-intensive task such as rebuilding a large assembly, you can use SolidWorks Task Scheduler to perform the job at off-peak hours.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000;">You can schedule a task to be performed only once or on a daily, weekly, or monthly basis. SolidWorks Task Scheduler runs separately from the SolidWorks application.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000;">You can use SolidWorks Task Scheduler with any SolidWorks license to convert documents to the latest SolidWorks version and to dissect documents. To schedule most other tasks, you must have a SolidWorks Professional, SolidWorks Premium, or SolidWorks Office license.</p>

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

RB
RB 2015-09-01

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.