Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: VBA and Diagrams
Topic Summary: Using VBA to automate making changes to diagrams
Created On: 22-Feb-2007 12:13
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 22-Feb-2007 12:13
User is offline View Users Profile Print this message


Mohamed Shajid

Posts: 6
Joined: 15-Aug-2006

Im trying to use VBA to add symbols (based on an existing Class definition) to a sequence diagram. Sort of what you would do by dragging the definition from the explorer onto the diagram. There is a method called CreateSymbol, but that creates a symbol with no defined Class as well as with the package set to the package of the diagram. Ive looked through the documentation a few times now and tried pretty much everything but I still cannot manage to find a way of doing this. 

If it does turn out to be impossible with the current SA api, how would I go about overloading the method with class and package parameters?

Any help would be much appreciated.



Edited: 22-Feb-2007 at 12:15 by Mohamed Shajid
Report this to a Moderator Report this to a Moderator
 22-Feb-2007 15:35
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Hi
Here is some code to add ALL classes in the ency to the current diagram.
I guess the key piece of code you are interested in is the AddClass subroutine.

Just run the TestIt subroutine.

Hope this helps
Ian

-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 0 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.