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: Copying OLE Objects / Duplicate module from kitchen
Topic Summary:
Created On: 27-Sep-2007 10:10
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.
 27-Sep-2007 10:10
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

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
Report this to a Moderator Report this to a Moderator
 27-Sep-2007 10:37
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 27-Sep-2007 15:59
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

Thanks Tony, that's the solution.

I only wonder why nobody else ever found that bug...

Karl
Report this to a Moderator Report this to a Moderator
 27-Sep-2007 16:16
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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