I'm writing a script to generate a sequence of activities with transitions
in an activity diagram. Everything works fine except all the activities
appeared overlapping with each other on the top left corner of the
diagram. What can i do to spread the elements across the diagram?PLs help.

Karen

-------------------------------------------------
Here's part of the script.

Dim event() As String
Dim numOfEvent As Integer 
Dim RefusesStMachine As StateMachine
Dim thisActDiagram As StateDiagram
Dim theActivity() As Activity    
Dim theActivityView() As ActivityView
Dim thisTransition As Transition
Dim isAdded As Boolean

                 
'create the first activity element       
Set theActivity(1) = RefusesStMachine.AddActivity(processName)
Set theActivityView(1) = thisActDiagram.AddActivityView(theActivity(1))  
         
'For each event, create a transition and its target activity
For eventID=1 To (numOfEvent) 

   Set theActivity(eventID+1) = 
       RefusesStMachine.AddActivity("Activity: " +event(eventID))
                 
   Set theActivityView(eventID+1) =
       thisActDiagram.AddActivityView (theActivity(eventID+1))  
         
   Set thisTransition =
       theActivity(eventID).AddTransitionToVertex("",theActivity(eventID+1))
                 
   isAdded = thisActDiagram.AddRelationView(thisTransition)
   thisTransition.GetTriggerEvent.Name = event(eventID)
         
Next eventID

  



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