![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
Is there a function call within DXL that clears/flushes/erases the contents of the DXL Output pane? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Programmatically flush the DXL output pane
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.