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: Unused Attributes
Topic Summary: I need a DXL that will report on unused attributes in a module.
Created On: 30-Aug-2006 15:23
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 Craig Forant, on Thursday, August 31, 2006 5:25 PM

Answer:
Thanks for the response guys.

Paul, I couldn't follow your script. Sorry. Maybe I it was just me, who knows.

Louie, yours seemed to fit a little better for my purposes. I had to take out the second usage of "entire". I think that was a typo. Otherwise, it works beautifully.

Thanks for your help.
 30-Aug-2006 15:23
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

This is the request I got...

"Query attributes that have never had any entries. Please do this in all active projects."

If I wrote a script using my knowledge of DXL, it would take days to run the script because I would have to cycle through the database opening all active modules one at a time, look at each object, then each objects history, then report on findings. I thought about using filters to accomplish this, but I am not sure if that is the better option.

The question is...Is there a fast method, via DXL script or other method, that will report on unused attributes in a module?

Thanks.

Craig

-------------------------
Craig Forant
me@craigforant.com
Report this to a Moderator Report this to a Moderator
 31-Aug-2006 12:33
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

It would be quicker to look for attributes that are not currently in use, i.e. No objects have the attribute set to a non-default value. I have a script that does this using filters (it's not well tested). To look for attributes that have never been used you'd have to dig back through module baselines too.
Report this to a Moderator Report this to a Moderator
 31-Aug-2006 16:44
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

'Ever had a value' would mean you'd have to cycle through all the module's history as well, yuuck. This won't find attr changes unless the attribute has History turned on (which most do).

'Has a value' is pretty easy; except you need to ignore values that are defaulted or inherited. See attached.

Note that a space in an object would return true.

- Louie
Report this to a Moderator Report this to a Moderator
 31-Aug-2006 17:25
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

Answer Answer
Thanks for the response guys.

Paul, I couldn't follow your script. Sorry. Maybe I it was just me, who knows.

Louie, yours seemed to fit a little better for my purposes. I had to take out the second usage of "entire". I think that was a typo. Otherwise, it works beautifully.

Thanks for your help.

-------------------------
Craig Forant
me@craigforant.com
Report this to a Moderator Report this to a Moderator
 6-Sep-2006 16:24
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

For the record, this was my final script.

-------------------------
Craig Forant
me@craigforant.com
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.