It is currently Mon Feb 06, 2012 3:16 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: Any VBA API for Diagram layout??
PostPosted: Thu Jul 10, 2008 11:05 pm 

Joined: Thu Jul 10, 2008 10:44 pm
Posts: 3
Hello All,
I am trying to customise some UML operations like adding / deleting relations between classes. I do the operations using some VBA macros. But I am stuck up :cry: updating the class diagrams after I am done with my changes in relations.... My model is kind of huge.... So that makes it difficult to remember and select all the class names to draw a new class diagram by Rhapsody Populate Diagram feature in Add New Structure Diagram.

I want to create a diagram using the same macro, so I that I dont need to remember all of it.
I found that we can do this IRPDiagram by addnewnodeforelement.
But this way I am not able to arrange the all nodes and relation edges in a hierarchial or orthogonal layout.. Which was possible when I do by the Rhapsody Populate Diagram feature.....
Is there a way to arrange the layout for the diagram by a VBA API?

Please help !!!! i would reallly appreciate any suggestions :wink:
VJ


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Jul 09, 2009 7:21 pm 

Joined: Thu Dec 04, 2008 6:21 pm
Posts: 2
Vijay:
The AddNewNodeForElement() operation requires that you specify the x and y coordinates of the symbol on the diagram as well as the symbol height and width. You can easily create any layout structure you want by calculating the values for these coordinates.

rustbuster


Offline
 Profile  
 
 Post subject: Re: Any VBA API for Diagram layout??
PostPosted: Fri Nov 26, 2010 11:49 am 

Joined: Mon Mar 03, 2008 3:12 pm
Posts: 23
Location: UK
FYI PopulateDiagram is now available through the API

Cheers
Andy



_________________
Get Rhapsody Tips, Tricks, Tutorials, Wizards and Sample Models here:

http://merlinscave.info/Merlins_Cave/Welcome.html
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred