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: Programmatically flush the DXL output pane
Topic Summary:
Created On: 18-Jun-2007 14:57
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.
 18-Jun-2007 14:57
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

Is there a function call within DXL that clears/flushes/erases the contents of the DXL Output pane?

Report this to a Moderator Report this to a Moderator
 18-Jun-2007 16:23
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

Yes, there is. It is called clipClear. For reasons beyond my understanding, however, the clipboard is only cleared when the function is called at the beginning of a DXL script. When called somewhere in the middle of execution, it has no effect.

Regards,

Peter

Edited: 18-Jun-2007 at 16:23 by Peter Albert
Report this to a Moderator Report this to a Moderator
 18-Jun-2007 16:43
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The DXL output text is cleared when execution of DXL begins in a new context.

Hence the clipClear is a bit misleading as it does not clear the dialog, this is a side effect of executing a new script.

Clicking on the Run button will clear the text, regardless of the code being executed.

There is no way to clear the output programmatically from within a running script.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 18-Jun-2007 17:44
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I attempted to use eval_ and evalTop_ to do it, but failed. See attached that didn't work.

Couldn't one of you clever folks try this:
[] Have a DXL snippett that does this: <int a=0>
[] Open a VBA connection to the current DOORS session.
[] Send DOORS the above command. Execution 'should' reset the DXL output since its a new DXL.
[] Wait for it to finish.

- Louie
Report this to a Moderator Report this to a Moderator
 19-Jun-2007 09:15
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I thought I was being really clever and tried to use eval_() and evalTop_() too.
Didn't work. I assume because the original context is still running.

I tried calling DOORS from VB as you suggested.
Didn't work.
Even if you send a print command in, it just appends the output to whats already there.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 19-Jun-2007 10:48
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

I should have explained a little futher, this is a layout DXL script which I was debugging with "print" statements, hence the need to clear the DXL output pane (especially for objects for which the script succeeded).

I've sort of got round it by using displayRich to flag errors in script(ure?) as well as when succeeding. It's not quite what I wanted but, combined with a filter to only show the odd object, runs at an acceptable speed.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.