These scripts are provided free of charge for the benefit of DOORS users. You may copy, modify or distribute any of these scripts as you wish, but please leave. The purpose of this series is to take a relatively simple script and add on to it and make it robust, providing a great DXL tutorial in the process. If someone in your company has already written some scripts in DXL, use them as reference. I had no formal training, the manual and some scripts were the only .

Author: Kazijinn Tygogis
Country: Luxembourg
Language: English (Spanish)
Genre: Love
Published (Last): 16 July 2009
Pages: 256
PDF File Size: 4.22 Mb
ePub File Size: 5.4 Mb
ISBN: 318-5-87568-348-6
Downloads: 3133
Price: Free* [*Free Regsitration Required]
Uploader: Akinogor

Getting Started with DXL

ttorial The problem as always is spare time. This is still a little unfriendly, but at least you get to choose the message. I have tutorixl couple of suggestions: I did not mean that all objects in the module should have an incoming link; rather I meant all filtered objects should have at least one incoming link. I need to create a small program in which: However, you’d need to open the filter tool each time to do this, and either respecify the filter or reload a view that contains tutorizl filter.

So there will be something, and hopefully sooner rather than later. Ack is equivalent to msgBox for you VB programmers out there. It passes the variables iAcc and iRej by reference, so that both iAcc and iRej are updated with the results. Module has incoming links. I know from rxl use that it is whatever is saved in an attribute, but I want to hear it from you. So let me get in-depth. DOORS is a database. I believe you may omit this statement and the code will still work flawlessly, but I prefer to be safe when it comes to DXL.

I am new to blogging and hopefully rxl be able to update my style sheet to automatically number lines in included code. The next command in the loop tests ttuorial see if the retrieved value, a string, is exactly equal to the string ‘Requirement’. Maintainable Constants Another thing that is untidy in the little program is the way that string constants in double quotation marks are sprinkled everywhere, including in the main body of the program.


Extending Rational DOORS with DXL

Is everyone with me so far? Then maybe to choose a folder to run this on. Calling print will always rxl it. For now, the requirement is only to determine whether or not any objects have incoming links. For now, I am setting our goal to be finding out if the current module has any objects that contain incoming links. The first thing to get out of the way is how to format the comments at the beginning of the file.

Sign up using Email and Password. The code above needs to be run in an open module with an object selected. The other thing that this tutorial assumed is that the end user only wants to find out if there are links to the module.

This is very useful as it allows thtorial to combine filtering with searching, but it can also lead to wrong programs if you don’t think out what you want. This makes it different than many other languages.

Finally, notice where we define the actual filter.

If the design of the database changes, for instance if the name of the ‘Object Type’ Attribute had to be updated, maintenance would be trickier than it ought to be.

You should know the difference between an int and a string.

Or are you aware of any addin scripts that already do this? Passing by reference is the only way passed vars can be updated by a function in other languages that I know.


Getting Started with DXL

Once we set the filter, if any objects are returned, they should all have an incoming link, because that is what the filter is set for. There is a function for a filter called hasLinks. Stack Overflow works best with JavaScript enabled. If there is no attribute scriptong error saying attribute does not exists. My plans eventually are to choose an individual module to run this on via a dialog box. If it is, the integer counter reqtCount is incremented i.

The better way to accomplish this is to apply a filter. The reference guide assumes that the programmer is only using the guide as a reference, so explanations are generally on the shorter side, and details are generally not always given where they ought to be. Regarding your suggestions… 1. It displays a dialog box with an OK button.

Extending Rational DOORS with DXL

Remember, the goal here is to document as much as possible in an easy tutorial—so people can look at this example and see all the basics to lookout for in one place. It is failing every time it encounters the missing file view. Kevin February 14, Salas, The code below should work: You probably can, but there is no point. The next line contains just a closing curly bracket, indicating the end of the for loop.

Sorry for the slow replies on the comments—my mailserver is not mailing me when I get a new one. The script can be modified to have a variable contain the current filter, then be run, then set that filter back.

Does that explain it better? Mike Log in to Reply.