![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL output using eval_() in Layout-DXL-Column
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.