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

Discussion in 'SolidWorks' started by Florian Gerteisz, Feb 2, 2005.

  1. 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
     
    Florian Gerteisz, Feb 2, 2005
    #1
  2. Florian Gerteisz

    CS Guest

    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
     
    CS, Feb 2, 2005
    #2
  3. 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!!)
     
    Florian Gerteisz, Feb 3, 2005
    #3
  4. 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.
     
    Evan T. Basalik, Feb 3, 2005
    #4
  5. Waht means "non-interactive mode"? swApp.UserControl = false ?
     
    Florian Gerteisz, Feb 5, 2005
    #5
  6. 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
     
    Evan T. Basalik, Feb 7, 2005
    #6
  7. Oh, that is bad!!

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

    Kind regards
    Flo
     
    Florian Gerteisz, Feb 10, 2005
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.