![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Displaying object through DXL and OLE Topic Summary: Created On: 27-May-2004 18:28 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trying to use the OLE runStr() method from my application to run DXL script to locate and display a DOORS object. I know the object's absolute number and module. The attached script works if the module is not open. If the module is already open, then I have to run the script twice in order to get it to work. Any thoughts on how to fix this or a better approach? Thanks, Aaron |
|
![]() |
|
![]() |
|
Probably a what-is-the-current-module problem. This gets set when you open a module but does NOT get set of the module is already open. Add a "print (name(current Module)) "\n" "command above your "object" command to see.
If that's the problem the use "(current ModuleRef__) = moduleHandle" in that spot to set the current to the module you just opened. Notice the two underscores in the command. - Louie |
|
![]() |
|
![]() |
|
It turned out that it was trying to go to the correct location, but the screen was not being redrawn correctly. I got it to work by using Windows API to hide the window, then DXL to scroll to and select object, and then Windows API again show the window. Yuck.
Aaron |
|
![]() |
|
![]() |
|
You should not need to use windows to refresh the display.
Try the following approach. (current ObjectRef__) = object // sets the current object AND the current module AND scrolls to it refresh(module) // redraws the module window I would also suggest that you add a test to see if the module is already open, and in what edit mode. You may what to close it and then reopen in the mode you want. ------------------------- Tony Goodman http://www.smartdxl.com Edited: 4-Jun-2004 at 08:58 by Tony Goodman |
|
![]() |
|
![]() |
|
Thanks, Tony. That worked.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Displaying object through DXL and OLE
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.