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: Project Level Addins
Topic Summary:
Created On: 9-Oct-2006 19:29
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 Louie Landale, on Friday, November 3, 2006 8:09 PM

Answer:
Line [createAddinPathMenus "DOORSPROJECTADDINS"] should already be in your 'project.dxl' file, and that's how it works without any effort on your part. There was some discussion (by me) on inserting a similar line in the 'link.dxl' to get a pile of link-module-only scripts to appear in open link-modules.

Anyway, if you can make this work for formal modules using 'addins' you can make it work for DB explorer using 'projectaddins'.

My ProjectAddins points to folder c:\Doors-Stuff\DXL-v7\Project. That 'Project' folder has two files [1] project.hlp. I'm not sure if the content in that matters, but its existence does matter. [2] project.idx containing the single line [Project-Scripts P _ Project-Scripts] (again content is questionable but the file must exist. [3] The 'Project' folder also has a folder named Project-Scripts (the same one mentioned in the IDX).

That sub-folder 'Project-Scripts' has a Project-Scripts.hlp and Project-Scripts.idx files. The other files for me are sub-folders but it may contain the DXL files themselves.

Yes, there is one extra level of folders than would be intuitive. That's to allow me to create two menus in the same project folder. Without changing my ProjectAddins variable, if I put a second folder sibling to Project-Addins then I get a 2nd menu.

DXL files must have a single comment and a block comment near the top of the file. I don't know how near the top but mine all have the at the top like this:
// PrintTOD.dxl - Display time of Day
/*
PrintTOD.dxl displays the time of the Day,
specifically the TOD of the current client computer
*/
infoBox(dateOf(intOf(today))
// ---- end file MyScriptName.dxl ----

Summarizing: each recognized folder must have two files therein, each file has the exact same name as the folder, one is type .hlp the other type .idx.

- Louie
 9-Oct-2006 19:29
User is offline View Users Profile Print this message


Heather Linsk

Posts: 50
Joined: 7-Mar-2006

I am trying to add a menu of addins at the project level and don't seem to be having much success.

I have tried using the -projectaddins switch at the command line with no luck.

I was reading through some old forum posts and there is a discussion of using the project.dxl file and "createAddinPathMenus "DOORSPROJECTADDINS""

I need some guidance.

Thanks in advanced.

Heather.

-------------------------
Heather Linsk
Lead Engineer
General Dynamics AIS
413-494-7095
Report this to a Moderator Report this to a Moderator
 9-Oct-2006 20:03
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

For a demo do the following:

Copy your current addins folder to
c:\project\


then add this command line switch
-J "c:\project\addins"
Report this to a Moderator Report this to a Moderator
 9-Oct-2006 20:26
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Line [createAddinPathMenus "DOORSPROJECTADDINS"] should already be in your 'project.dxl' file, and that's how it works without any effort on your part. There was some discussion (by me) on inserting a similar line in the 'link.dxl' to get a pile of link-module-only scripts to appear in open link-modules.

Anyway, if you can make this work for formal modules using 'addins' you can make it work for DB explorer using 'projectaddins'.

My ProjectAddins points to folder c:\Doors-Stuff\DXL-v7\Project. That 'Project' folder has two files [1] project.hlp. I'm not sure if the content in that matters, but its existence does matter. [2] project.idx containing the single line [Project-Scripts P _ Project-Scripts] (again content is questionable but the file must exist. [3] The 'Project' folder also has a folder named Project-Scripts (the same one mentioned in the IDX).

That sub-folder 'Project-Scripts' has a Project-Scripts.hlp and Project-Scripts.idx files. The other files for me are sub-folders but it may contain the DXL files themselves.

Yes, there is one extra level of folders than would be intuitive. That's to allow me to create two menus in the same project folder. Without changing my ProjectAddins variable, if I put a second folder sibling to Project-Addins then I get a 2nd menu.

DXL files must have a single comment and a block comment near the top of the file. I don't know how near the top but mine all have the at the top like this:
// PrintTOD.dxl - Display time of Day
/*
PrintTOD.dxl displays the time of the Day,
specifically the TOD of the current client computer
*/
infoBox(dateOf(intOf(today))
// ---- end file MyScriptName.dxl ----

Summarizing: each recognized folder must have two files therein, each file has the exact same name as the folder, one is type .hlp the other type .idx.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.