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: System Attributes
Topic Summary: How do you share Attributes in a project?
Created On: 11-Jan-2007 16:52
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 Reik Schroeder, on Wednesday, January 17, 2007 10:14 PM

Answer:
Hi Melissa,

if you are firm in using DXL
you may have also a look into $doorshome/lib/dxl/utils/copyops.inc
There is a function updateEnumeration__ defined which may do what you need.
But be carefull if it is really what you need?!

Be carefull with editing Enumerations at all, because when you change or delete values it is not shown in history of Objects! The deletion of an used value of enumeration can not be restored!

I hope this helps you ...

Greetings
Reik
 11-Jan-2007 16:52
User is offline View Users Profile Print this message


Melissa Kirkland

Posts: 3
Joined: 10-Jan-2007

I would like to create an attribute that consists of data stored in an Enumeration. I want the attribute to be shared between multiple modules, but the enumeration will continue to grow with the life of the project. Is there a way to share the data and have it updated throughout all the modules even though it is only being changed in one location? If I try to import the attribute, the new attribute will not update if the enumeration is later changed in another module.

Any help would be greatly appreciated.

Thanks,
Melissa Kirkland
Trajectory Server
Flight Dynamics IVT
United Space Alliance (NASA)
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 22:01
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

The functinality you want is not built into doors.

You might search for the phrase "Change Enums" in this forum to see an approach other have taken.
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 22:51
User is offline View Users Profile Print this message


Melissa Kirkland

Posts: 3
Joined: 10-Jan-2007

That is what I thought, but thanks for clarifying that for me.

Report this to a Moderator Report this to a Moderator
 12-Jan-2007 07:20
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Answer Answer
Hi Melissa,

if you are firm in using DXL
you may have also a look into $doorshome/lib/dxl/utils/copyops.inc
There is a function updateEnumeration__ defined which may do what you need.
But be carefull if it is really what you need?!

Be carefull with editing Enumerations at all, because when you change or delete values it is not shown in history of Objects! The deletion of an used value of enumeration can not be restored!

I hope this helps you ...

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 12:44
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Melissa,

Try the attached. It comes with a health warning, which is that it doesn't update modules that someone else has open, but it might be possible to work around that using config files and triggers, such that when an update fails, store the new enumerations in a config file, and have a 'module close' trigger read the config file and update the enumerations when the failing module closes.

The reason I haven't completed the code so it does the above is that the demand here has gone away (for a while). So if you make it work, a return posting would be appreciated!

Cheers,
Paul.

PS the include files can be made available if needed...

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


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 18-Jan-2007 07:32
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

Damn, I have a script that copies attributes from a 'template' module to all the modules in a Project. Never even thought that I could make my life simpler by adding an Open Module trigger. I might work on this further, I dont want to run the update evert time someone opens a module, so I need to figure out something like an 'attributes updated date' module attribute (oh dear, I see a 'dog chasing own tail' problem there). Will let you know how I get on. Rgds Andrew.

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
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.