![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Personalizing the DOORS GUI Topic Summary: Creating a button of a DXL script Created On: 4-Aug-2005 20:38 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I've created a DXL script and want to create a button of this script onto the DOORS GUI. This button (via the DXL script) is to 1) read the contents of a text file located on my local C drive and 2) do its stuff. Currently, I'm doing this manually by opening DOORS and going through Tools->Edit DXL to load and run my script. How do I create this button? |
|
![]() |
|
![]() |
|
Easiest way is to add your script to
C:\Program Files\DOORS7\lib\dxl\addins\user The pulldown user will then show your script by name you have given the script. This is all assuming this is your path to DOORS and assuming you have the script properly formatted with one // and one /**/ comment |
|
![]() |
|
![]() |
|
I'm accessing DOORS through a network. So I do not have a local copy of DOORS on my laptop/PC. How do I go about adding my script in this case?
|
|
![]() |
|
![]() |
|
Access DOORS through a network... doesn 't it mean that you have a shorcut to launch the DOORS executable which is in a directory in the network...???
If yes, do you know that you can modify the shorcut and addins the parameters -addins. Look for "Summary of command line switches " in the online help of DOORS. |
|
![]() |
|
![]() |
|
You might also / alternatively set registry key entries for additional search paths for all DXL "types" (i. e. your addins in DB / project view, module view, attribute-dxl and layout-dxl). - if you'd like to centralize your DXL extensions on any (different) server than the DXL database location and - would limit your admin effort by configuring your startup links only with the DXL database location but not with your DXL extension location. ------------------------- Regards Karsten |
|
![]() |
|
![]() |
|
Like someone mentioned earlier. a good place it to assign macros is in the User menu, but if you REALLY want a button on your toolbar, read on.
The actual code that paints and assigns buttons to the front end to your DOORs module screen is located in the file formal.dxl You can add a button to the toolbar and assign it to execute your custom dxl. To do this, add code similar to the following into the 'createFormalButtonBar2()' function located in file: formal.dxl Note: formal.dxl is located in ...lib\dxl\config\ -------------------------------------------------------------------- // Position this code to add your Icon(s) at your desired location in Toolbar2 and then // define the path to your custom DXL to be executed on button press. separator createItem ( null, null, null, null, createFormalModIcon, "put Title for Your DXL here", "Place a comment here to explain your DXL function to the user", null, doorsHome "/lib/dxl/addins/user/misc/yourCustomDXL.dxl") separator ------------------------------------------------------------- (reference the DXL manual for complete createItem() function parameters) Unfortunately (as far as I can tell) you must use one of the existing DOORs icons (there are a bunch to pick from). In the above example I used the button icon- 'createFormalModIcon' Quick hint to the overexcited... Backup Formal.dxl before you try this - just in case.... Dan |
|
![]() |
|
![]() |
|
Hi Everyone!
I am having a problem with other users not being able to see the custom Dxl menu once I have created it.
In C:\Program Files\DOORS7\lib\dxl\addins\
I created another folder and added a few dxl's.
I can see the menu with all of the dxl's; however, no one else can.
I have made the folder structure accessable for everyone to see.
Any suggestions as to why they cannot see the menu?
Thanks for the help!
E
|
|
![]() |
|
![]() |
|
Did you post the dxl's on the network or your PC? If you placed the dxl's on your hard drive other users don't have access to them. The dxl's must be placed on the server where DOORS is installed to be accessed by all users.
------------------------- jobina.l.johnson@boeing.com ![]() |
|
![]() |
|
![]() |
|
Your deployed DOORS auto looks at your installed location ..\lib\dxl\addins to find any more DXL. The other folks' DOORS will look at THEIR installed location. Since you haven't duplicated your DXL onto thier client, they won't see it.
If you insist on sharing DXL (i.e. a common menu), you'll need to deploy it on some server and update all the clients "addins" command to look at it. In this case your partner's "addins" variable could be updated to something like this: "\\WetzelsComputer\DXL-Addins" after you set your "addins" folder to be shared as name "DXL-Addins". I've never dealth with a "workstation" deployment scheme, but am confident that if you went that way (which is hopelessly slow) you could get away with your scheme. - Louie |
|
![]() |
|
![]() |
|
I just wrap up all the dxl's, support files, etc. into an installer package and add them to each users PC by having them run a simple .msi installer file. You can direct the files to be written to the appropriate directories and it makes it very easy for each user to install the enhancements on his own PC.
It works well and I can also add revision control to see which Rev (build) of the Installed package they have currently installed on their PC. Dan |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Personalizing the DOORS GUI
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.