![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
Here is the core logic of my own copy objects script.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 ---------------------------------------- |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Copy Objects between modules
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.