Hello, I have read the forum for a while but didn't find the solution for me. I want to start a new DOORS session using C#. That is not the problem but I want also to use this session independent how much other DOORS sessions are running parallel. Did someone already implemented this? Thank a lot! Andreas AndreasNeufeld - Wed Jun 11 08:02:07 EDT 2014 |
Re: Start and use a sertain DOORS session in C# If you intend your "C" program to interact with DOORS after establishing a connection... It will involve starting a new "DOORS.Application" which requires sending the user name and password, unless the database uses system user names or some other auto login method. Hardcoding passwords is a bad idea. Having your "C" program prompt the user for the password seems silly, might as well just invoke DOORS and have them log into that directly. Otherwise, you can get a handle on the "current" doors session, but that gets sticky as you need to read some Windows process whatever file to determine one DOORS session from the other. Far better if there is only one. If your "C" program can figure out some DXL to run that does not require any user interaction, then you could have your "C" program invoke DOORS in batch mode, which would start, run the code, presumably send it back to "C", then close DOORS. Again, though, you need those passwords. -Louie |
Re: Start and use a sertain DOORS session in C# Hi I think that the following routine will become your best friend: http://msdn.microsoft.com/en-us/library/windows/desktop/ms684004%28v=vs.85%29.aspx You can start doors and with the VBA-Command GetObject("Doors.Application") you can get access to the running doors. But if you start different doors session on the same pc, you need this routine to sort out. And - No, actually I've not written a software, you have asked for. I'm planning to do it. Best regards Wolfgang Uhr |