![]() |
Telelogic System Architect (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.