Advertisement
dviguhix

Untitled

Jun 26th, 2014
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.53 KB | None | 0 0
  1. sub Application_OpenProjectComplete()
  2.    MainWindow.MapWindow.Navigator.XAngle = 0
  3.    MainWindow.MapWindow.Navigator.YMirror = false
  4.    ExpandAllFalse()
  5. end sub
  6.  
  7. 'Свернуть все слои
  8. sub ExpandAllFalse()
  9.     dim aProjectView, aMapView, aLayerView, aStyleView
  10.     set aProjectView = Application.ActiveProjectView
  11.  
  12.     dim aMapNode, aLayerNode, aStyleNode
  13.     for each aMapView in aProjectView.MapViews
  14.         aMapView.Expanded = False
  15.         for each aLayerView in aMapView.LayerViews
  16.             aLayerView.Expanded = False
  17.         next
  18.     next
  19.  
  20. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement