![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Copying OLE Objects / Duplicate module from kitchen Topic Summary: Created On: 27-Sep-2007 10:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
we are using a script from the Telelogic kitchen to duplicate a module or a baseline of a module. Now with some modules we experience a strange behaviour: If an object contains an OLE object then in the duplicated module this OLE object appears twice in the same object. Can anybody shed some light on this? Karl |
|
![]() |
|
![]() |
|
I think I can.
Take a look at the file kitchen/utensils/copyops.inc. The function copyObject() actually does the copying. It calls copyAttribute_() which uses richTextWithOle() to copy the object text, which as the name suggests, includes any embedded OLE objects. However, copyObjs() also copies the OLE using the clipboard functions oleCopy() and olePaste(). I have not tried this out, but looking at the code this seems to be the problem. Try commenting out the lines containing calls to oleCopy() and olePaste() and run the script again. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks Tony, that's the solution.
I only wonder why nobody else ever found that bug... Karl |
|
![]() |
|
![]() |
|
Makes you wonder doesn't it!
This of course is one of the problems with using stuff like kitchen scripts that are not supported by Telelogic. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.