Some of the options that are available to you:

**********
1.         Copy and Paste:
The simplest thing to do might be to just bring up the diagram that you want to save 
as a
graphic file. Copy the diagram to the clipboard by doing an Edit->Select All followed 
by an
Edit->Copy.   Then open up a graphic application like MS Paint or Adobe Photoshop and 
paste
the contents of the clipboard into that new file.  Finally can save the new file to 
any of
the formats that are supported by the graphic application.

2.         Web Publisher:
This option only applies to the Rose 98i Enterprise Edition and all editions of Rose 
2000,
2000e and 2001.  The Enterprise Edition of Rose 98i and all editions of Rose 2000, 
2000e and
2001 contain a built in Web Publisher add in.   Run the Web Publisher and then click 
on the
'Diagrams' button.  You will be given an option to save your diagrams as Windows Bitmap
(.bmp), Portable Network Graphics (.png) or as JPEG (.jpg) files. Your diagrams will be
published to the selected format in the web published model.

3.         Rose Script:
The Rose Extensibility Interface (REI) contains two methods called Render and 
RenderEnhanced
which can be used to save diagrams to Windows Metafile (.wmf) or Enhanced Windows 
Metafile
(.emf) formats respectively.  The script listed below can be used to save the currently
active diagram to either of these two formats:

'<<START SCRIPT>>
'Annamalai "Vishu" Viswanathan
'12/22/1999

Sub Main

Begin Dialog SaveDialog ,,180,51,"Save Diagram"
        OKButton 132,8,40,14
        OptionGroup .OptionGroup1
        OptionButton 12,12,84,8,"Windows Metafile (.wmf)",.wmf
        OptionButton 12,28,112,8,"Windows Enhanced Metafile (.emf)",.emf
End Dialog

Dim MyDialog As SaveDialog
Dim theModel As Model
Dim theDiagram As Diagram

Const w$ = "Windows Metafiles:*.WMF"
Const e$ = "Enhanced Windows Metafiles:*.EMF"

Set theModel = RoseApp.CurrentModel
Set theDiagram = theModel.GetActiveDiagram

If theDiagram Is Nothing Then
                          MsgBox "There is currently no active diagram"
Else
                          result = Dialog(MyDialog)
                          ctrl = MyDialog.OptionGroup1
                          If ctrl = 0 Then
                                  f$ = SaveFilename$(theDiagram.Name, w$)
                                  If f$ = "" Then
                                      MsgBox "No file name was specified"
                                   Else
                                        theDiagram.Render f$
                                   End If
                          Else
                                     f$ = SaveFilename$(theDiagram.Name, e$)
                                     If f$ = "" Then
                                         MsgBox "No file name was specified"
                                      Else
                                         theDiagram.RenderEnhanced f$
                                      End If
                          End If
End If

End Sub

'<<END SCRIPT>>
'--------------------

Take note however that the script using the GetActiveDiagram method to get the diagram 
that
you want to save to a graphic format.  This means that you must launch this script 
from a
menu item in Rose.  You cannot run this script from a script window because if you try 
to do
so the script window will be the active window and not a diagram window.  To launch 
this
script from a menu selection you will need to modify the rose.mnu file in the following
manner:

Menu Tools
{

  Separator
  option "Class Wizard..."
          {
                  enable %model:writeable
                  RoseScript $SCRIPT_PATH\cwizard.ebx
          }
  option "Save ActiveDiagram..."
          {
                  RoseScript $SCRIPT_PATH\RenderRoseDiagrams.ebs
          }
}

In this case the script listed above is named RenderRoseDiagrams.ebs and
is located in the directory pointed to by the $SCRIPT_PATH pathmap.

4.     Rose Graph
There is a VB application that you can download called Rose Graph that
will allow you to publish your diagrams to various graphic formats
including .gif and .jpg.   You can download this at:
http://www.rationalrose.com/addins/rosegraph.htm
**********

Regards

Vishu

--
---
Annamalai "Vishu" Viswanathan  --  [EMAIL PROTECTED]
Rose Technical Support Engineer
Rational Software

(800)433-5444 (Rational Support)

Check out http://www.rosearchitect.com/ for tips and news for Rose users

---


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