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: 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
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.
 18-Nov-2005 07:53
User is offline View Users Profile Print this message


Edwin Anderson

Posts: 1
Joined: 18-Nov-2005

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
Report this to a Moderator Report this to a Moderator
 18-Nov-2005 09:22
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
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.