![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DOORS API - tool integration examples? Topic Summary: Created On: 29-Oct-2002 17:23 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The exit_() function is overloaded and can also be used without a dialog box (DB) input. void exit_() void exit_(DB) | |
![]() |
|
I'm looking to do some tool integration and I'm wondering if anyone has any examples of tool integrations using the DOORS API. I've been looking at the API manual, but as with most of the programming examples that come with DOORS, it's inadequate for a beginner.
------------------------- Gyan Penrose-Kafka Requirements Management Consultant gyan@zenmonkey.net |
|
![]() |
|
![]() |
|
Agreed, I have suggested to Telelogic that someone who knows the API (maybe the actual programmer?) write a more comprehensive outline for the API. A great place for beginners to start is to look at the OLE functionality. I do not care for the layout of the wordexporter included with DOORS, however it does have the examples I learned from to make DOORS drive a MS Word/Outlook/Excel application.
Best of luck, ------------------------- rg. ![]() |
|
![]() |
|
![]() |
|
FYI:
I have now found a way to Close files in Excel and Word. checkRes(oleMethod(objWorkbook, "Close", args)); But still one of the biggest tasks is to exit Excel/Word, etc when the report file is Closed. If a dozen reports is run at night on batch jobs, a dozen Excel/Word programs will be up and running. I've tried oleMethod with Exits, and Quits (with and without args) along with some connectToApp and disconnectFromApp but can't seem to bring Excel down. Ben Tooker Raytheon Systems - Garland Ben_W_Tooker@Raytheon.com ------------------------- Ben Tooker Edited: 29-Mar-2004 at 16:39 by Ben Tooker |
|
![]() |
|
![]() |
|
Ben-
I presented a paper at the Users Conference in 2002 where I expanded the functionality that DOORS has for Excel. I was able to add functions to open spreadsheets, save them, and close them, but I was unable to close Excel through code even though I could open it. The problem is that you are in a catch 22 with Excel. You can't close Excel without first disconnecting from it, but you can't close it after you disconnect from it. -Jeremy Eble Teragon Consulting LLC JeremyEble@teragonconsulting.com ------------------------- Jeremy Eble Software Engineer Teragon Consulting LLC jeremy.r.eble@lmco.com |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
Jeremy,
I'm not sure if I'm missing something but this works for me Jon ------------------------- Jonathan Marshall EADS Astrium |
|
![]() |
|
![]() |
|
I am having the opposite problem. I have an Excel file with a macro that launches DOORS, then runs a DXL program that opens a module, selects a view and then exports the data into a new sheet in the Excel file. It then closes the module. Then I would like it to close DOORS. Is there anyway to do this?
Thanks, Karen ------------------------- Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com |
|
![]() |
|
![]() |
|
You can call exit_() as follows:
(current FolderRef__) = folder "/" exit_(dbExplorer) BUT, Telelogic have told me that the use of exit_() is not supported and they recommend that we do not use it. There is also a defect with the use of exit_() when the explorer is hidden, that may cause a crash. The bug has been logged under case ID SH5005582. There is no other work around that can be used to shutdown doors. Having said all that, this is how doors is shut down when you select File->Exit from the database explorer menu! ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks -- I tried what you wrote, but was getting some very strange behavior. First, the module window kept flashing maybe 20 times then sometimes it would close and other times DOORS with abort with an error. In either case I would get an error in my Excel macro and have to reboot my machine.
------------------------- Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com |
|
![]() |
|
![]() |
|
try issueing "dbExplorerClose()". That's what the Exit menu does.
|
|
![]() |
|
![]() |
|
Thanks - but I get the same behavior.
------------------------- Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com |
|
![]() |
|
![]() |
|
Perhaps you need to save and close all open modules.
for mod in database do { if (unSaved(mod)) save(mod) close(mod) } Some mods may stay open since they are referenced by other modules (via links). So you'll need to issue closes either 2 or 3 times, I don't recall: for mod in database do { close(mod) } for mod in database do { close(mod) } - Louie |
|
![]() |
|
![]() |
|
The exit_() function is overloaded and can also be used without a dialog box (DB) input.
void exit_() void exit_(DB) ------------------------- Bruce Tuskey Sr. Principle Engineer Tuskey@gmail.com "All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien) |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DOORS API - tool integration examples?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.