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: Copy Objects between modules
Topic Summary: Object copy without links
Created On: 29-Sep-2008 20:35
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 Mark Williamson, on Tuesday, September 30, 2008 12:46 PM

Answer:
Thanks Ron,

I think that the cobyobj.dxl is the way to to go. I'm just going to attack that now. I'll be very happy if I can get the functions working and declutter later.

Mark
 29-Sep-2008 20:35
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hello all,

I'm sure I'm going to kick myself as I cannot believe that this is difficult.

I have a master requirements module with a number of attributes which are used to define the requirements for a specific test via the UI.

Based upon the value of the selection I have no trouble identifying the requirements and can even print the object text. What I need to do is copy the object text for the selected requirements into a new test module which I have altready created.

I've read many posts on the subject and even studied the copyobjs.dxl from the kitchen, but believe there is considerable overkill here. It is only the object text that I need to copy/duplicate.

If there is a straight forward solution, I would greatly appreciate.

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 29-Sep-2008 20:52
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Create a filter containing the object you want to copy, then either
--select Tool->Function->Copy Objects if your doing copy manually
or
--execut copyobjs.dxl from standard folder if your doing copy by dxl

Edited: 29-Sep-2008 at 20:56 by ron lewis
Report this to a Moderator Report this to a Moderator
 29-Sep-2008 20:57
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi Ron,

I have no trouble doing this through the DOORS GUI and have used this function successfully on many occasions. I need to be able to carry out the copy from within DXL as part of a larger script.

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 30-Sep-2008 12:37
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

I guessed you wanted to do it by script but I wanted to validate your requirements before proceeding.

You could write the code to do the copy which can get cumbersome when it comes to creating objects in the right order.


Easiest solution is to make a copy of copyobj.dxl and disable the gui by commenting out realize and show functions.

Then creating a substitute for the callback functions. Yes this will leave a lot of dead code in your script but that really is something that can be removed if you have the heart for it after you get the functions working.

Edited: 30-Sep-2008 at 13:31 by ron lewis
Report this to a Moderator Report this to a Moderator
 30-Sep-2008 12:46
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Answer Answer
Thanks Ron,

I think that the cobyobj.dxl is the way to to go. I'm just going to attack that now. I'll be very happy if I can get the functions working and declutter later.

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 2-Oct-2008 13:15
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Here is the core logic of my own copy objects script.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 2-Oct-2008 13:25
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Thanks again David,

You are a star. I was about to try and hack the copyobjs script in the kitchen and wasn't too confident.

Cheers

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 2-Oct-2008 13:48
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

See Kevin Murphy's site for more of scripts I've written. If you'll be at UGC in Austin in a month feel free to say hello.

www.baselinesinc.com

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 2-Oct-2008 13:55
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi David,

Much as I would love to attend the Austin UGC, I am attending the UK event in London next month.

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 2-Oct-2008 15:59
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

Hi Mark,

I am attending the UK event too, so feel free to say hello to me instead.

Anyone else going to the UGC, it would be good to put a face to a name.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com

Edited: 2-Oct-2008 at 16:01 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 6-Oct-2008 14:55
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi David,

I have studied at length your copy objects script and by removing all the DB elements and specifying the target and source modules have managed to get the appropriate number of objects created in the target module. However the objects are empty so I am assuming that the copyAttributeValues(o,newObject) function is the missing link. I only need to copy the Object Text.

Any further pointers?

Thanks

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
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.