Title: RE: (ROSE) REI --Manipulating Rose Diagrams

Hello,

For this kind of tasks you cannot use the Collections because, as you noticed, they're read-only, nor user defined solutions.

You need to get the owner/context of the item you want to add, and call a specialized add<XXX> method.

For example:

theCategory.addClass

theDiagram.addClass

See these full examples from the Solutions web site:

http://solutions.rational.com/solutions/display.jsp?solutionId=20877
Subject:  WINDOWS: Is there an examples of a script to create test models? 
Solution Id:  20877 

http://solutions.rational.com/solutions/display.jsp?solutionId=16645
Subject:  WINDOWS/UNIX: How to create class diagrams using Rose Extensibility Interface 
Solution Id:  16645 

Regards, Lara

==========================================================================
Solutions knowledge base                     http://solutions.rational.com
==========================================================================
Lara Ziosi                                      Technical Support Engineer
Rational WW Customer Service                             Rational Software
Phone: +31 (0)20 4546 200                          Fax: +31 (0)20 4546 201
Beechavenue 30  -- 1119 PV Schiphol-Rijk                   The Netherlands
Email: [EMAIL PROTECTED]         http://www.rational.com/support
==========================================================================


-----Original Message-----
From: Lo, Tammy [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 11, 2002 12:13 AM
To: '[EMAIL PROTECTED]'
Subject: (ROSE) REI --Manipulating Rose Diagrams



Hi all

I would like to add RoseItem object into the collection.  Since the
Collection Properties and Methods only allow read access, the only way is to
use User-Defined Collection to add or remove items from collection
temporarily.  Is there a way to get around this? 

I would like to add another class to the Rose model based on an external
document dynamically thru the Rose script, so that I can display it on the
existing Rose diagram.

Please help!

I'd greatly appreciate your help...

Tammy
************************************
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT.
************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* 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
*************************************************************************

Reply via email to