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: Question about "include" statements
Topic Summary:
Created On: 13-Jan-2009 12:02
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 Pranav Chandrasekhar, on Wednesday, January 14, 2009 11:54 AM

Answer:
It worked great!!! Thank you very much.
 13-Jan-2009 12:02
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Hi,
I have always had trouble with "include" statements. Most of the time, I have solved the trouble via a "trial and error" method but every now and then, I hit a dead end altogether. The question is as follows:

My "addins" folder for the DOORS client is

\\SharedAddins\DoorsDXL\addins

This path is captured after the "-a" statement in the properties field of the DOORS client's shortcut.

The "addins" sub-folder has a folder within it called "include\dxlattrs". I want to refer to a file in this folder via an include statement. I have tried the following:

#include(addins\include\dxlattrs\includefile.inc)

but I get an error. Will removing the "addins" bit of the path above fix the issue? Please do let me know. Thank you in advance.

Regards,

Pranav
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 13:06
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi Pranav,

Not sure if it will help but my include path is inside < > brackets and not ( ).

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 14:08
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

DOORS looks in $DOORSHOME/lib/dxl, folders referenced by ADDINS, folders referenced by DOORSADDINS.

You specified the folder using a -a switch, so your include should be as follows:

#include <include/myScript>

i.e. don't include the folder you specified, just the sub-folder folder itself.

Conversely, if you want to reference a folder in the $DOORSHOME/lib/dxl/addins directory (that you have not referenced using ADDINS) then you need the following:

#include <addins/blah...>

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 19:18
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Thank you very much Tony and Mark!!! I will let you know if it worked.

Regards,

Pranav
Report this to a Moderator Report this to a Moderator
 14-Jan-2009 11:54
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Answer Answer
It worked great!!! Thank you very much.
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.