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 OLEs in v6
Topic Summary:
Created On: 16-Sep-2002 21:36
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 Judith Underwood, on Wednesday, September 25, 2002 4:22 PM

Answer:
In DOORS v6 there is a new function RichTextWithOle, which you can use in the same way as the richText function as applied to attributes. So you can write

string sourceVal = richTextWithOle objFrom.attrname
objTo.attrname = richText sourceVal

You can also do this with buffers instead of strings, which is more efficient.

Judith
 16-Sep-2002 21:36
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

In DOORS v5 you could copy "the" OLE in the object via:
. if (oleIsObject(objTo)) oleDelete(objTo)
. if (oleIsObject(objFrom))
. { oleCopy(objFrom)
. olePaste(objTo))
. }

In v6 any text attribute can have lots of OLEs in it, so now I need to find a way to copy them. Even though I can "oleCount" them, and if >0 put the attribute in a column so I can "oleCopy" them, I cannot "olePaste" them at all into the correct position in the destination object. It appears there may be some sort of richText solution to this, but my feeble efforts at rich text manipulation and viewing have yielded the fact that the rich text knows nothing about the OLEs in the text.

How can I copy OLEs with DXL in v6?

- Louie
Report this to a Moderator Report this to a Moderator
 17-Sep-2002 23:25
User is offline View Users Profile Print this message


r g

Posts: 24
Joined: 20-May-2002

Louie,

If you're going to cut/paste the OLE objects discretely from one DOORS object to another, consider using either an intermediary to store the ole objects (use a skiplist for example), or have your call recursively grab the object as an OLE object (that has the multiple OLE objects in it to begin with; and when you perform the paste operations within DOORS, it recognizes that the OLE object (with all the subobjects included) is actually a DOORS object and should paste it without making it an icon or package.

Good luck.

rg.

-------------------------
rg.
Report this to a Moderator Report this to a Moderator
 25-Sep-2002 14:17
User is offline View Users Profile Print this message


Judith Underwood

Posts: 35
Joined: 25-Sep-2002

Answer Answer
In DOORS v6 there is a new function RichTextWithOle, which you can use in the same way as the richText function as applied to attributes. So you can write

string sourceVal = richTextWithOle objFrom.attrname
objTo.attrname = richText sourceVal

You can also do this with buffers instead of strings, which is more efficient.

Judith
Report this to a Moderator Report this to a Moderator
 25-Sep-2002 21:16
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Yes, this richTextWithOle sure seems like it will do the trick.

Thanks.

I'm too ignorant about this RichText stuff and am a little paranoid, but the test cases I ran seem to work. I guess I'll just automatically use this command for all "Text" attributes; the only ones that can contain an OLE diagram.

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