Hi all,
the company I'm working for as a freelancer is using solidworks and draft sight for some years and they had written a tool in c which takes a dxf/dwg file and saves it as a dxf file in another folder for converting (removing some logic). So, it's a very simple logic and the control draftsight use COM Automation API. It's works fine, but one of the biggest pain is, a physical user have to logon the pc and have to start that process and wait until it's finished.
Now the company asked me to turn this logic into a service which is able to do this automatically. I stated and now I have a windows service (written in C#) which wants to start draft sight, butthe call to "new DraftSight.Application()" do not return and the application crashes. Running the same application from a console application (manually starting it) it works. (I registered the service to run with the credentials of a DomainUser which has a DraftSight-License assigned)
Hopefully someone is able to help me.
If someone know's another way to implement this scenario, you're welcome :-)
Kind regards
Joachim
