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: Import picture as OLE other than Object Text attribute
Topic Summary: importing OLE pictures in other than Object Text attribute
Created On: 14-Jan-2009 12:06
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.
 14-Jan-2009 12:06
User is offline View Users Profile Print this message


Ashish Shrivastava

Posts: 4
Joined: 1-Apr-2008

While dealing with import from word file, i am stuck on a point. I need to import all the pictures in a specific attribute which of "Text" type.

As per DXL help i am able to import the pictures as OLE object in "Object Text" attribute. I need to import the same picture in other text attribute in place of "Object Text" say "OLE Pics".

I am unable to do it with the help of olepaste command, as it does in Object Text only.

Any undocumented function is there by which we can achieve this.

Thanks in advance.
Report this to a Moderator Report this to a Moderator
 14-Jan-2009 13:59
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

.

Edited: 14-Jan-2009 at 14:00 by ron lewis
Report this to a Moderator Report this to a Moderator
 14-Jan-2009 15:49
User is offline View Users Profile Print this message


Joe Sarkic

Posts: 31
Joined: 13-Jun-2005

Apparently, DOORS DXL does not have any functionality to place OLE inside of any Text attributes, with the exception of "Object Text". I have a case ID (7022979 opened in Feb. 2008) where Telelogic confirmed this deficiency, and have it logged as a possible future enhancement.
Report this to a Moderator Report this to a Moderator
 15-Jan-2009 04:07
User is offline View Users Profile Print this message


Ashish Shrivastava

Posts: 4
Joined: 1-Apr-2008

Hi Joe, Thanks for the information.
But we can insert the OLE objects in any text attribute via insert OLE objects.
Then there must be some undocumented function to do it.
Report this to a Moderator Report this to a Moderator
 15-Jan-2009 12:42
User is offline View Users Profile Print this message


Joe Sarkic

Posts: 31
Joined: 13-Jun-2005

I had the same thought when I contacted Telelogic support. There answer was as follows:

"PD is of the opinion that the fact that most other OLE perms support the use of non-object text attributes, but oleInsert doesn't, is a defect, and so they have raised it under =27655.

Our Product Development will review this for a possible fix in a future release.

At present the only way to use DXL to get an OLE into another attribute is to copy or cut then paste it."

If there is an undocumented function, they were not willing to share it.
Report this to a Moderator Report this to a Moderator
 15-Jan-2009 13:58
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

Not sure if this helps, but I wrote a crude script a while ago that copies OLE from any text attribute to any other text attribute using "richTextWithOLE"

s = richTextWithOle o.attributeName
o.newAttName = richText s

but of course the OLE has to be in a text attribute already
and all accompanying text is copied along with the OLE ..

Karl
Report this to a Moderator Report this to a Moderator
 15-Jan-2009 16:33
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Preamble. In DOORS v5 and earlier, and OLE diagram was associated with the Object itself and not with any particular attribute. Thus all the commands that dealt with ole diagrams used the Object as a parameter. When DOORS v6 removed the OLE diagram from the object and allowed it ..err.. them to exist in any Text attribute, they added ole commands that allowed for attribute references, of type Attr__. Following a policy of providing DXL backward compatibility with earlier releases, they maintained the old 'oleXXX(Object)' commands. Some now make sense and mean 'Object Text', some don't make sense anymore. I think now 'oleCut(Object)' finds the first OLE in Object text. Its confusing.

I see in the v8.3 doors.exe there exists these function:
[1] bool olePasteLink(Object)
[2] bool olePaste(Object)
[3] bool olePasteLink( Attr__)
[4] bool olePaste(Attr__)

The first 3 are in the DXL manual, chapter 'OLE objects' section 'Embedded OLE objects and the OLE clipboard'. I see that the 4th is not in the manual but looks like the one you could use. I see that using it doesn't generate DXL errors. Using it would look like this:

bool GotError = olePaste(obj."MyTextAttribute")

I wonder where exactly in the attribute it would paste the OLE on the clipboard. I see no mechanism for pasting into the middle of the attribute.

- Louie
Report this to a Moderator Report this to a Moderator
 19-Jan-2009 11:31
User is offline View Users Profile Print this message


Ashish Shrivastava

Posts: 4
Joined: 1-Apr-2008

Thanks Karl, it is working.

Thanks Louie, I hope it should work, i have not tried yet.
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.