![]() |
Telelogic System Architect (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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. Edited: 22-Feb-2007 at 12:15 by Mohamed Shajid |
|
![]() |
|
![]() |
|
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. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.