![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Refreshing diagram via VBA macro Topic Summary: Created On: 12-Mar-2007 11:00 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
I've a simple question: I want to refresh a diagram via VBA macro, after changing a symbol layout. Now, as a workaround, I use: Set ISA = Application.Interface("ISAImf") ISA.SAExecuteMenuCommand 310 ffice ![]() Is there an another more efficent way to do this? Thanxs rN |
|
![]() |
|
![]() |
|
Hi
That solution is the one we would suggest. Closing and re-opening the diagram would also force a refresh, but the menu command is the best way to do it if you don't want the diagram to close. Thanks Ian ------------------------- Senior Software Developer Telelogic UK Ltd. |
|
![]() |
|
![]() |
|
Hi Raffaele,
where did you get that 310 code? I need to invoke a "Refresh Collection" on the edit Menu when I have an explorer collection on an explorer diagram and I can't discover its code. Thanks in advance João Almeida Portugal |
|
![]() |
|
![]() |
|
This may be irrelavant in this thread but may be useful to other VBA developers.
If you need to invoke any of the menu items via VBA you can use the "executemenubyname" method of the application class. The parameter for this method is the "menu tool name" and can be determined by hitting Ctrl-Shift-F1 when mouse in hovering over the menu item. for example if you have a diagram opened in SA under control of a VBA macro and you want to reroute all the lines then the following will do a "select all" followed by "route line(s)>retain connections" SAapp.ExecuteMenubyName ("SAIDM_82") SAapp.ExecuteMenubyName ("SAIDM_102") |
|
![]() |
|
![]() |
|
This looks useful - but Ctrl-SHift-F1 does not seem to work for me - I am using Citrix to access System Architect - maybe I am not doing it correctly - but any other way of finding this out?
Thanks This may be irrelavant in this thread but may be useful to other VBA developers. If you need to invoke any of the menu items via VBA you can use the "executemenubyname" method of the application class. The parameter for this method is the "menu tool name" and can be determined by hitting Ctrl-Shift-F1 when mouse in hovering over the menu item. for example if you have a diagram opened in SA under control of a VBA macro and you want to reroute all the lines then the following will do a "select all" followed by "route line(s)>retain connections" SAapp.ExecuteMenubyName ("SAIDM_82") SAapp.ExecuteMenubyName ("SAIDM_102") |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.