Title: RE: (ROSE) How to find the Number of Classes, package etc in ROSE MDL file

Hello,

        You should be able to query pretty much all of these types of Rose elements from a model [file] by utilizing the Rose Extensibility Interface (REI) either via a RoseScript or by an external application (e.g. VB app) which would use Rose as automation server.

        For example, here is rather simple RoseScript which would give you a listing of all classes in the current model in Rose:

Sub Main
   Dim classes As ClassCollection
   Set classes = RoseApp.CurrentModel.GetAllClasses
   If classes.Count > 0 Then
        Viewport.Open
        Viewport.Clear
        Print "Listing of all classes in the model:" & ebCrLF
        For c% = 1 To classes.Count
         Print classes.GetAt(c%).Name & " [" & classes.GetAt(c%).GetQualifiedName & "]"
        Next
   Else
        MsgBox "No Classes found in this model."
   End If
End Sub

        Please let me know if you wish for me to work with you in putting together such RoseScript(s) to complete your list.

 
Thank you,
 
Shaquille Asghari
Senior Support Engineer
Rational Software Corporation
 
Support: 1-800-433-5444
Sales/Licensing: 1-800-728-1212
Solution Knowledge Base: http://eservice.rational.com/solutions <http://eservice.rational.com/solutions>
SCP Certified: http://www.rational.com/support/scp.jsp <http://www.rational.com/support/scp.jsp>


-----Original Message-----
From: Prashant Pandey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 22, 2002 11:03 PM
To: [EMAIL PROTECTED]
Subject: (ROSE) How to find the Number of Classes, package etc in ROSE
MDL file


Hi all,

I am trying to prepare the metrics report using Rational Rose Model which includes the below list.
1.      Class
2.      Attribute
3.      Operations
4.      Package
5.      Use Cases
5.      Activity Diagram
6.      Sequence Diagram
etc.

Can anybody help me to find a way how to find the above list of values from rational rose model files.

Regards
Ash



Reply via email to