![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
.
Edited: 14-Jan-2009 at 14:00 by ron lewis |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks Karl, it is working.
Thanks Louie, I hope it should work, i have not tried yet. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.