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: Displaying object through DXL and OLE
Topic Summary:
Created On: 27-May-2004 18:28
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.
 27-May-2004 18:28
User is offline View Users Profile Print this message


Aaron Nauman

Posts: 5
Joined: 26-May-2004


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


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 3-Jun-2004 19:52
User is offline View Users Profile Print this message


Aaron Nauman

Posts: 5
Joined: 26-May-2004

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
Report this to a Moderator Report this to a Moderator
 4-Jun-2004 08:57
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 8-Jun-2004 16:15
User is offline View Users Profile Print this message


Aaron Nauman

Posts: 5
Joined: 26-May-2004

Thanks, Tony. That worked.
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.