Hello, |
Re: Merging 2 objects, one of them contains and OLE object I have a script that can do this but it has to be used a certain way - this is a slightly modified variant of a script released by Telelogic many years ago (was originally in the so called DOORS Kitchen scripts as well known as "Join Objects"). You have to select the objects that you want to merge then run the script - it will merge those objects (OLE included) into the top most object of that selection, but once merged it then deletes and purges the other selected objects - the down side of this is that if the objects being deleted & purged have incoming links, it will fail and you will get a run time error "cannot delete Object: object has incoming links". If this is a problem for you - open the file, go to the very end and comment out or delete everything after the line that has "// delete remaining objects". If the objects being merged have outgoing links, it will merge these as well. BTW the delete & purge aspect is not actually instantiated until you save the module so if you make a mistake, you can back out by not saving the module. If the objects you want to merge are not contiguous (one after the other), you can create a filter to only display the objects you want to merge, then select those objects in the filtered view and run the script - it will apply the merge only to those selected items as they appear in the filtered view and not to any filtered items that are hidden but also technically selected as well. You will need to play around with it on a copy of the module. Paul Miller Melbourne, Australia Attachments attachment_14595760_MergeObjects.dxl |