![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL Layout - pointing all views to single instance of script. Topic Summary: Created On: 22-May-2003 05:40 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
We have many views which use the same DXL Layout script. Rather than having multiple copies of the same DXL Layout script across each of the views, we insert a single #include line into the column DXL Layout box which points to a single instance of the DXL Layout script stored on a network drive. This is handy, because you can centrally deliver DXL layout scripts and only have to apply changes to the one script (all views will pick up the change). The problem is that when a project is archived and restored (or partitioned) onto a laptop so that it can be taken to a customer site, all of the views with columns that point to the central DXL Layout script fail when the laptop is not connected to the network. Can anyone think of a DXL method or hack that can apply a conditional branch that will use an alternative secondary #include path should the primary one not be available due to disconnection from the network? The secondary #include would default to pointing to a location on the C: drive where a copy of the DXL layout scripts can be temporarily located. ![]() ------------------------- Paul Miller Specification Practices Specialist, EuroCyber, Melbourne, Australia. Mobile: +61 (0)418 135 103 Web Site: http://www.eurocyber.biz E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz |
|
![]() |
|
![]() |
|
Paul-
I think this method will accomplish what you ask. The first step is to use Stat to test if the DXL file in question exists, either the file on your network drive or the one on the C drive. Make sure to check both files before you attempt the next step! For information on Stat, see the command regular(function) in the DXL Help index. Since you will be using this within display DXL which executes many times in a view, don't forget to clean up after yourself by deleting the Stat pointer before you finish, it behaves much like a Skip pointer and will use large amounts of memory if given the chance. Next, use this little known expression to execute it from within your code: eval_ "#include <" name ">" Where name would be replaced by the full path location of your script. Hope it helps! -Dennis |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.