![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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. | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
'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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
For the record, this was my final script.
------------------------- Craig Forant me@craigforant.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Unused Attributes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.