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 to attach symbols/definitions to existing hierarchy
Topic Summary: Anyone have code to invoke SA to connect symbols on OV-5/SV-4 as done via interface?
Created On: 21-Jul-2006 22:23
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.
 21-Jul-2006 22:23
User is offline View Users Profile Print this message


Perry Wilderson

Posts: 1
Joined: 30-Mar-2006

I've the seen the code in the vba tutorial to add symbols on a diagram and draw connecting lines between them.  I was wondering if anyone knew of a programmatic way to have SA insert a new child object into an existing hierarchy (OV-5 or SV-4 for example) where lines are not drawn but automatically appear through association?



Edited: 21-Jul-2006 at 22:25 by Perry Wilderson
Report this to a Moderator Report this to a Moderator
 6-Dec-2006 16:56
User is offline View Users Profile Print this message


Greg Sims

Posts: 1
Joined: 6-Dec-2005

There are several other clients wanting to do the same thing in Org Charts and other hierarchical diagrams. Please let me know if someone has developed such code.
Report this to a Moderator Report this to a Moderator
 7-Dec-2006 12:01
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Create an Organisation Chart diagram (mine was OV-04, but other types should be fine).
Create the following structure :-

              Org_unit_1
                   |
  |-----------------------|
Org_Unit_2     InsertChild
                          |
                       Org_Unit_4

Save the diagram and leave it open.
The children will be inserted before Org_Unit_4, under the node InsertChild.
Create a VBA macro project (read write).
Edit the Module1 and paste in the attached code.
Run the macro.

Notes: I think the parameter lphDefHandle is a bit misleading - it should be lphDiagHandle. This may have confused some people - it got me!

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 1 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 1 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.