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: create symbol with definition in explorer diagram?
Topic Summary:
Created On: 29-Jul-2008 09:39
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.
 29-Jul-2008 09:39
User is offline View Users Profile Print this message


chunjia wang

Posts: 39
Joined: 11-Oct-2007

hi,all.
In Explorer Diagram , I create a symbol , but the symbol does not contain any definition , I want to the symbol "defined by" the exist definition.
How should I do .

My test code is :
'**********************************************************
Dim oApp As SA2001.Application
Dim oEnc As SA2001.Encyclopedia
Dim oDlg As SA2001.Diagram
Dim oSym As SA2001.symbol

'创建 一个Symbol Def ,并做关联
Private Sub CommandButton1_Click()
'On Error Resume Next
Dim osym1 As SA2001.symbol
Dim oLin As SA2001.symbol

Set oApp = New SA2001.Application
Set oEnc = oApp.Encyclopedia
Set oDlg = oEnc.GetCurrentDiagram

Set oSym = oDlg.CreateSymbol("Test Def1", 816)
oSym.XPos = 200
oSym.XSize = 200
Set osym1 = oDlg.CreateSymbol("Test Def2", 818)
osym1.YPos = 500
osym1.YSize = 250
Set oLin = oDlg.CreateSymbol("Test line", 820) 'Relationship
oSym.ConnectTo oLin
osym1.ConnectFrom oLin

End Sub
'*******************************************************

After runing the above code, In the Explorer Diagram , there is SymbolOne named "Test Def1" and SymbolTwo named "Test Def2" .
In my SA system , there is a Definition named "Def2".
I want to the SymbolTwo "defined by" Definition "Def2".
How , thanks.
Report this to a Moderator Report this to a Moderator
 29-Jul-2008 13:42
User is offline View Users Profile Print this message


Peter Crabb-Wyke

Posts: 73
Joined: 3-May-2007

The symbol and the definition MUST have the same name. Call the symbols Def1 and Def2 rather than "Test Def1" and "Test Def2" and it will work.
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.