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: DXL output using eval_() in Layout-DXL-Column
Topic Summary:
Created On: 15-May-2008 10:56
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.
 15-May-2008 10:56
User is offline View Users Profile Print this message


Martin Schleiermacher

Posts: 3
Joined: 19-Sep-2003

Hi,

I am trying to keep all the code from Layout-DXL-Columns in files on a Network-Drive where every user has acces. Using the eval_() function to run the DXL-Code I get the DXL output "incorrect arguments" for the lines in code where the variable "obj" is placed.


I don“t really know when and how the eval_() function is call. Strange for me is that using an #include no DXL output appears, only using eval_()

Does anyone have any ideas?
Report this to a Moderator Report this to a Moderator
 23-May-2008 01:48
User is offline View Users Profile Print this message


Justin Gravois

Posts: 9
Joined: 4-Aug-2006

Try using #include instead of eval_() in the Layout DXL. This runs the code as if it were in the layout column, whereas eval_ runs it in a separate memory space.
Report this to a Moderator Report this to a Moderator
 26-May-2008 20:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Wrote a little ditty attached. The eval_ string calculates and returns the object level and the layout simply displays the results of the eval_.

Notice that the key to this is variable 'AbsNo' is defined and initialized in the 'EvalString' and is 'passed' to the 'LayoutDXL', which uses the 'object' perm to get an Object handle (oCurr) of the desired Object.

In your case you would want to put the contents of variable 'LayoutDXL' into an include file, and replace the 'LayoutDXL' reference with a command to #include that file.

Good luck with this.

The weak point in this technique is the 'object' command, which requires that the desired object to be found be [1] visible [2] in the 'current' module. I don't know if layout will fire in a situation where one of those two conditions isn't met. I doubt its realistic to try to pass the module as well as the object to the #included file, and then search for the object manually.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.