![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: How to delete a symbol in VBA without a prompt to the user? Topic Summary: Is is possible to delete a symbol from a diagram without the user being prompted? Created On: 12-Oct-2007 18:12 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am deleting symbols in the following VBA macro. System Architect asks whether the user wishes to purge or remove the symbol when I invoke the sym.Delete call.
Can anyone help me suppress the prompt and set the effect of the Delete to 'Remove from diagram'. All suggestions appreciated Dim sym As Symbol Dim ucName As String ucName = def.name If diag.Hidden Then diag.Show Dim relatedObjs As SAObjects Set relatedObjs = diag.GetFilteredSymbols(ucName, ETOOUSECASE) Call relatedObjs.ReadAll If relatedObjs.Count > 0 Then Set sym = relatedObjs.Item(1) Debug.Assert Not sym Is Nothing sym.Delete Set sym = Nothing diag.Save End If diag.Hide Set diag = Nothing |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.