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: attribute generator
Topic Summary: automatic dxl creation
Created On: 5-Apr-2007 13:42
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.
 5-Apr-2007 13:42
User is offline View Users Profile Print this message


Bernhard Kreutter

Posts: 2
Joined: 5-Apr-2007

Does anybody have a dxl script to read the attributes and views of an existing Formal Module which creates a new script which could be used to add them to a new module?
Report this to a Moderator Report this to a Moderator
 5-Apr-2007 14:00
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

There are already scripts out there to copy attribute definitions from one module to another.  I'm sure someone can share one with you.  If you want something custom it's not hard to create one.  Just create a script that, from the target module, lets you choose where you're getting attributes from, have it list the attributes,  select the ones you want, and then copy the attribute definitions to the current module.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 5-Apr-2007 14:10
User is offline View Users Profile Print this message


Oliver Röpke

Posts: 42
Joined: 23-Nov-2005

Hi Bernhard,

what kind of script do you need?

a) Copying attributes and view directly from another module to the current one or
b) Saving the attribute definitions, types and views to a file enabling the user to import the exported stuff to another module which is e.g. in another DOORS database?

For b) there are two aproaches:
1. A DXL file can be generated which contains the complete code and the exported stuff. This file can be run directly via "Edit DXL".
2. The file which contains the exported stuff will be applied to a particular module by a kind of import tool.



-------------------------
Greetings,<BR>Oliver<BR><BR><BR>Oliver Roepke<BR>Axis Engineering AG, Munich
Report this to a Moderator Report this to a Moderator
 10-Apr-2007 08:46
User is offline View Users Profile Print this message


Bernhard Kreutter

Posts: 2
Joined: 5-Apr-2007

Hi Oliver, I'm thinking about option b). I would like to do the following: 1. Open a Formal Module 2. Start a script which writes all attributes and views from the current module to a new dxl file (this script is what I'm looking for). 3. Put the script onto the Main Menu 4. Create new Formal Modules 5. Start the script from the Main Menu to import all predefined Attributes and Views to the new Modules. ------------------- Greetings, Bernhard
Report this to a Moderator Report this to a Moderator
 11-Apr-2007 03:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

As David said there are scripts that will copy the attributes or views from one module (presumably a template) to another (presumably a new one).

You seem to be asking for a script that will read the attrs and views of a module and generate a new SCRIPT, that presumbably will be run on some other database. That's certainly doable but I think it would be a lot easier for you to have a pair of scripts; [1] that reads the views and attributes and saves the relevant info to a text fipoe [2] one that reads that text file and creates the views and attributes in the current module.

Alternatively you could pretty easily 'clone' the source empty template module, archive it here and restore it there, then copy its views and attributes with existing scripts.

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