Yes you can create diagram via Rose script. Here is an example: 'automatically make main diagrams for each category 'with all the category's classes in them
sub fillmeup(cat as category, diag as classdiagram) dim cc as classcollection set cc = cat.classes dim cold as classcollection set cold = diag.getclasses ' ' ' for i% = cold.count to 1 step -1 xxx = diag.removeClass(cold.getat(i)) next i ' ' ' for i% = 1 to cc.count added = diag.addclass(cc.getat(i)) next i diag.layout end sub Sub Main dim cc as categoryCollection set cc = roseapp.currentmodel.getAllCategories dim kitty as category dim maindiag as classdiagram dim diag as classdiagram print cc.getat(1).name set maindiag = cc.getat(1).classdiagrams.getat(1) maindiag.visible = true set cc=roseapp.currentmodel.categories for i% = 1 to cc.count set kitty = cc.getat(i) maduga = maindiag.addcategory (kitty) jj% = kitty.classdiagrams.findfirst("Main") if jj = 0 then set diag = kitty.addClassDiagram ("Main") else set diag = kitty.classdiagrams.getat(jj) end if fillmeup kitty,diag next i fillmeup maindiag.parentcategory, maindiag maindiag.layout End Sub For more on Rose script, please see http://solutions.rational.com/solutions/display.jsp?solutionId=7953 Subject: WINDOWS/UNIX:Scripting Help - Learning RoseScript and REI Solution Id: 7953 Patrick Kennedy Rational Support -----Original Message----- From: Nea Suciu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: (ROSE) Add-in functionality Hi, I'm thinking about writing an add-in to rational rose that would basically create a class diagram from a java source file. I'm pretty new to RR and the add-in API's in particular. Does RR provide any hooks for creating diagrams? Thanks a lot Nea _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * Only plain-text messages are supported. * HTML or Rich-Text messages may be rejected. * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * 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 * Only plain-text messages are supported. * HTML or Rich-Text messages may be rejected. * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum *************************************************************************