![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Extracting object from all modules with the same attribute value. Topic Summary: Create module containing object from other modules with specific attribute Created On: 18-Nov-2005 07:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Good day
We have functional specifications with some "exclusion" objects. For this reason we added an boolean "Excluded" attribute. I would like to create one module which contains all the objects in other modules in the project where this attribute is true. In the end having a module with all exclusions. Is this possible ? I tried to travers the project and modules and then came to the realisation that I will most probably have to create new objects in the new module... and that's where I got stuck on how to go about doing this. Kind regards Edwin edwin.anderson@atosorigin.com |
|
![]() |
|
![]() |
|
Looping through a load of modules and creating objects in a module is tricky because you get caught up in all sorts of issues with "current" sensitive functions like create(object).
A simple way to do what you ask is to export the information to a CSV file and then import that into your "exclusions" module. Sounds like you have already figured out how to traverse the project and inspect objects. When you find an object with excluded = TRUE, then export the following to a CSV file: "Object Text", "Absolute Number" "Module Fullname". Import this into your new module, creating attributes as necessary. If you include the fullname of the original module and the absolute number of the object then you can easily find the objects later. If you want to be a bit more flash, you could wrap these two steps up into a single DXL to be run from your exclusions module and call it from an Update menu option. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.