Well, in Python that doesn't work either. I think you are mixing up name
and type...
l = Application.Desktop.ActiveLayout
vm = l.FindView( "View Manager" )
print vm
vm = l.FindView( "vm" )
print vm.Name
print vm.Type
# None
# vm
# View Manager
Here's how the UI button does it, in VBScript
set vw = Desktop.ActiveLayout.Views.Find( "View Manager" )
vw.setattributevalue "suspenddrawing","true"
vw.setattributevalue "layout","reset"
vw.setattributevalue "suspenddrawing","false"
On 18/01/2013 2:03 PM, Guillaume Laforge wrote:
Desktop desktop = Application().GetDesktop();
Layout activeLayout = desktop.GetActiveLayout();
View vm = activeLayout.FindView(L"View Manager");
vm.PutAttributeValue(L"layout", L"reset");