You can also use the REI to render the diagram to the clipboard as an
enhanced windows metafile.  Then it can be pasted into any Windows app that
understands this format.  Obviously this is a simple script that operates on
the current diagram, but you can wrap this technique into a script that
opens Word, steps through each diagram, renders the diagram to the
clipboard, and then pastes it into Word - all automagically.

'
'       Render Enhanced Diagram to Clipboard
'
Sub Main
        Dim theModel As Model
        Dim theDiagram As Diagram

        Set theModel = RoseApp.CurrentModel
        Set theDiagram = theModel.GetActiveDiagram
        theDiagram.RenderEnhancedToClipboard
End Sub

-----Original Message-----
From: Kesterton, Anthony [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 6:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: (ROSE) Saving Class diagram as an image



Hi

> is it possible to save a class digaram (or any other diagram for 
> that matter) as a jpeg or gif.  so that the same may be embedded 
> into a word docuemnt???

You can copy/paste a diagram into Word (this would be a Windows Bitmap
file), or use the Web Publisher in Rose 2000/2000e/2001 to web publish your
diagrams - these produce JPEG or PNG format diagram files.

To copy/paste into Word - bring up the diagram you want in Rose - make sure
nothing is selected on the diagram then do a Edit->Copy.  Switch to Word and
do a Edit->Paste

Hope that helps

anthony
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to