Using SolidWorks (API) in a Windows Service (.NET)

Hi All,

is it possible to use the SolidWorks-API in a Windows-Service (written in C# / .NET)?

I want to write an Service who converts SWX-Parts to another 3D-Format.

What happens, when several simultaneous requests are comming?!

Thanks for help!

Flo

Reply to
Florian Gerteisz
Loading thread data ...

What is meant by Simultaneous Requests. Requesting SW to convert more than one file at a time? SW should handle them in sequence I believe. You might be able cause a second session of SW to convert a second part if the other is busy. I wonder if you could contact CADRegister.com they seem to be able to do this currently. I think they are using SW to do the conversions.

Corey

Reply to
CS

Ok, Thanxs!

But, cause there any problems when i use the SolidWorks-API in a Windows-Service who is wiritten in C# (.NET)??

Flo (Sorry for my bad english!!)

CS wrote:

Reply to
Florian Gerteisz

I have done this a couple time and it works quite well. The only problem is that SW won't run in a non-interactive mode (although I have to admit I have not tried it, so I don't know what error message is thrown, if any). When I do it, I use a filesystemwatcher to look for files in my target directory. When it sees a file that meets the criteria, then SW kicks off. I am using it to test the batch processing of some files.

Reply to
Evan T. Basalik

Reply to
Florian Gerteisz

By non-interactive, I mean when there is no user logged into the machine. Typically, services are the solution of choice when nobody is logged into the machine. Most applications that are designed to be run by a user (SolidWorks, Excel, etc.) require somebody to be logged in.

Evan

Reply to
Evan T. Basalik

Oh, that is bad!!

Does anyone know, how to run SolidWorks without a logged-in user??

K> By non-interactive, I mean when there is no user logged into the

Reply to
Florian Gerteisz

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.