Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: DOORS API - tool integration examples?
Topic Summary:
Created On: 29-Oct-2002 17:23
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Bruce Tuskey, on Friday, March 11, 2005 5:03 PM

Answer:
The exit_() function is overloaded and can also be used without a dialog box (DB) input.

void exit_()
void exit_(DB)
 29-Oct-2002 17:23
User is offline View Users Profile Print this message


Gyan Penrose-Kafka

Posts: 10
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 11-Nov-2002 18:12
User is offline View Users Profile Print this message


r g

Posts: 24
Joined: 20-May-2002

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.
Report this to a Moderator Report this to a Moderator
 22-Mar-2004 22:27
User is offline View Users Profile Print this message


Ben Tooker

Posts: 13
Joined: 9-Jun-2003

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
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 04:51
User is offline View Users Profile Print this message


Jeremy Eble

Posts: 30
Joined: 20-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 08:49
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Here is a fun Outlook example.


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 12:31
User is offline View Users Profile Print this message


Jonathan Marshall

Posts: 27
Joined: 10-Apr-2003

Jeremy,

I'm not sure if I'm missing something but this works for me

Jon

-------------------------
Jonathan Marshall
EADS Astrium
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 15:12
User is offline View Users Profile Print this message


Karen Hidalgo

Posts: 55
Joined: 4-Nov-2003

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
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 15:39
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 17:35
User is offline View Users Profile Print this message


Karen Hidalgo

Posts: 55
Joined: 4-Nov-2003

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
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 23:50
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

try issueing "dbExplorerClose()". That's what the Exit menu does.
Report this to a Moderator Report this to a Moderator
 27-Jan-2005 11:25
User is offline View Users Profile Print this message


Karen Hidalgo

Posts: 55
Joined: 4-Nov-2003

Thanks - but I get the same behavior.

-------------------------
Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com
Report this to a Moderator Report this to a Moderator
 27-Jan-2005 22:17
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Feb-2005 19:24
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 77
Joined: 2-Mar-2004

Answer Answer
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)
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.