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: Running DXL from a menu
Topic Summary:
Created On: 15-Nov-2004 18:25
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.
Answer This question was answered by , on Friday, March 11, 2005 5:06 PM

Answer:
wrt The point about them sometimes not being present, the user file menu only gets set up at opening the module. So if you add a file while the module is open it wont appear. Close and reopen the module and there it is.
 15-Nov-2004 18:25
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

I am trying to run dxl scripts from the User menu (available when a module is open).
When I put the dxl files in ...\lib\dxl\addins\user\ (on my local machine) they sometimes show up and sometimes they don't.
Also I would like to be able to put them in the same location on the server, so the users can use them.
How do I get DOORS to look at the server location instead of my local machine, and how do I make sure the script will show up as a menu item once the file is copied to the proper location.

We are using DOORS 6.0 SR1 build 60202

Thanks,
Al Lione
albert.lione@ngc.com
Report this to a Moderator Report this to a Moderator
 15-Nov-2004 22:05
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

[1] Deployed scripts must be formatted as follows:
First line is a comment and shortly thereafter there is a comment block. Example:
// MyPrivateScript.dxl - Find last modified Objects in the current module
const string NameAttr = "Last Modified On"
/*
MyPrivateScript.dxl finds the 5 last modified objects in the current module and filter for them.
There is no dialog, it just does it.
*/
Yaddy Yad.

[2] Once deployed, the first line appears in the >>Tools>>Dxl Library list, and the comment block appears therein when you click on a particular script. Those two comments are great places to document what the script actually does.

[3] If you edit the "*.idx" file (in this case ../Addins/User/User.idx) you can put the script name and the blurb that will be seen in the menu. Failing to insert an appropriate line in the IDX will result in files showing only the script name ..err.. script's file name, in this case "MyPrivateDXL". My *.idx lines look like this:
MyPrivateScript _ _ MyPrivateScript: Find Last Modified Objects
The first word is the name of the *.dxl file, the last few are the blurb that appears in the menu. The two underscores are for shortcut keys (such as cntr-shft-A) ,and I don't use them.

[4] The /addins folder is automatically part of your addins path, and so you always get its subfolder User menu. You can suppress that menu by renaming folder "user" to "userold", which I recommend for folks who don't deploy there (takes that User menu off your Module windows).

[5] You can deploy on the Server but that requires updating everyone's registry entries to create new "addins" environment variable. Search for "deploy" for other posts about that.

- Louie
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.