Save Custom Toolbar Configurations

Transcript

1 Hands On Save Custom Toolbar Confi gurations By Steven Lead, ESRI (UK) Ltd. ArcMap. This ensures that toolbars will appear in the correct positions The ArcMap toolbars in ArcGIS 9 behave slightly differently from toolbars regardless of how they were displayed the last time ArcMap was closed. in ArcMap in previous versions of ArcGIS. In older versions of ArcGIS, Other custom toolbar confi gurations can be created by starting ArcMap from if an ArcMap toolbar was docked and then switched off and ArcMap was the Start menu, opening and placing toolbars, and renaming the Normal.mxt closed, when ArcMap was reopened, the toolbar would be displayed in the with an appropriately descriptive name. Change the code in Listing 1 to docked position. With ArcGIS 9, docking a toolbar and closing it and re- reference the new custom Normal.mxt. starting ArcMap will return the toolbar to its default position (i.e., undocked and fl oating above the Data Frame). This article describes one method for Avoid cluttering up the Windows desktop with shortcuts to VBScripts, managing toolbars in ArcMap 9. By creating several customized Normal place all the shortcuts in a folder accessed through the Windows Start menu. templates that incorporate specifi c toolbar confi gurations, the user can Choose Start > Settings > Taskbar & Start Menu, click on the Advanced tab, quickly and easily invoke ArcMap with a variety of toolbar confi gurations and click the Add button. that are tailored to specifi c tasks. Dim fso Dim shell Use Multiple Normal Templates Dim quote When ArcMap is closed, the position of the toolbars is saved to the Normal. mxt template. By making multiple versions of the Normal template and us- Set fso = CreateObject(“Scripting.FileSystemObject”) ing some VBScript code to manage these templates, ArcMap can be started fso.CopyFile “NormalSpatialAnalyst.mxt”, “Normal.mxt” with the toolbars in the desired positions for various projects. This example illustrates a toolbar confi guration that might be used for set shell = WScript.CreateObject(“WScript.Shell”) raster-based projects. In this case, it might be desirable to hide all toolbars quote = Chr(34) except those for the ArcGIS Spatial Analyst and ArcGIS 3D Analyst exten- shell.Run quote & “E:\arcgis\Bin\Arcmap.exe” sions and dock these toolbars in particular locations. The following steps will customize the Normal.mxt so that these toolbars—docked in specifi c Listing 1: VBScript for using custom Normal.mxt fi le for positioning toolbars. locations—will appear every time ArcMap is invoked using the VBScript. Normal.mxt document on Windows 2000 and XP will be in C:\Docu- 1. Open ArcMap and position the toolbars in desired locations. ments and Settings\ Close ArcMap. \ 2 . Navigate to the Normal.mxt document in the user directory. For Win- Application Data\ESRI\ dows 2000 and XP users, this will be C:\Documents and Settings\\Application Data\ESRI\ArcMap\Templates. For Windows NT users, this will be C:\WINNT\Profi les\\Application Data\ ESRI\ArcMap\Templates\. If the Application Data folder is not visible in Windows Explorer, choose Tools > Folder Options and click the radio button next to Show Hidden Files and Folders. For this example, re- name this document NormalSpatialAna- lyst.mxt. Donʼt worry about replacing the Normal.mxt fi le because if ArcMap does not fi nd Normal.mxt in the default location, it will create a new copy of this fi le. 3 . Paste the code shown in Listing 1 in a new text document in Notepad and save it in the same directory as NormalSpatialAnalyst.mxt using the name SpatialAnalyst.vbs. The VBS extension will cause the text fi le to be saved as Note: If arcmap.exe was a VBScript document. installed at some location other than C:\Program Files\ArcGIS\Bin\, change the path statement in the last line of the script to refl ect this location. Place a shortcut for SpatialAnalyst.vbs on the desk- . 4 top so it can be easily accessed. Changing the icon for this shortcut can make it easier to recognize this short- cut fi le. 5 Start ArcMap by double-clicking on the shortcut for . SpatialAnalyst.vbs. The ArcGIS Spatial Analyst and ArcGIS 3D Analyst extensions toolbars will appear in the desired positions. Saving Other Toolbar Confi gurations The code in SpatialAnalyst.vbs replaces the existing Normal template with a custom Normal template before starting www.esri.com www.esri.com

Related documents

acdsee 21

acdsee 21

Photo Studio Standard 2018

More info »
Read Write for Windows 11 5 Gold Training Guide UK

Read Write for Windows 11 5 Gold Training Guide UK

V11.5 Gold Edition Training Guide Updated J an 2015

More info »
AcqKnowledge 4 Software Guide

AcqKnowledge 4 Software Guide

® Acq 4 Software G uide Knowledge Check BIOPAC.COM > Sup port > Manuals for updates For Life Science Research Applications Data Acquisition and Analysis with BIOPAC Hardware Systems Reference Manual f...

More info »
FactoryTalk View Site Edition User's Guide

FactoryTalk View Site Edition User's Guide

User Manual FactoryTalk View Site Edition User's Guide

More info »
Tracker Help

Tracker Help

Tracker 5.0 Help Open Source Physics (OSP) Java Tracker is a free video analysis and modeling tool built on the framework. Features include object tracking with position, velocity and acceleration ove...

More info »
Folio4NonFRA US.book

Folio4NonFRA US.book

® LexisNexis CD on Folio 4 User’s Guide

More info »
CFX Maestro Software User Guide

CFX Maestro Software User Guide

Real-Time PCR ™ CFX Maestro Software User Guide V e r s i o n 1. 0

More info »
DaVinci Resolve 15 New Features Guide

DaVinci Resolve 15 New Features Guide

New Features Guide DaVinci Resolve 15 PUBLIC BETA

More info »
MACSQuantify Software manual

MACSQuantify Software manual

MACSQuantify™ Software 2.11 Usermanual Version 1 Original instructions

More info »
Movie Magic Screenwriter

Movie Magic Screenwriter

Movie Magic Screenwriter 6 Help for Mac OS X Version by Write Brothers, Inc.

More info »
GnuCash Help Manual

GnuCash Help Manual

GnuCash Help Manual The GnuCash Documentation Team

More info »
Master Software Tools User Guide

Master Software Tools User Guide

User Guide Master Software Tools Anritsu Company Part Number: 10580-00439 490 Jarvis Drive Revision: A Morgan Hill, CA 95037-2809 Published: November 2017 USA Copyright 2017 Anritsu Company

More info »
Pro Tools Reference Guide

Pro Tools Reference Guide

® Pro Tools Reference Guide Version 9.0

More info »
VisItUsersManual1.5

VisItUsersManual1.5

UCRL-SM-220449 VisIt User’ s Manual October 2005 Version 1.5 wrence La Livermore National Laboratory

More info »
Beyond Compare User Guide

Beyond Compare User Guide

Copyright © 2014 Scooter Software, Inc.

More info »
MuseScore 3 handbook

MuseScore 3 handbook

Handbook Downloaded from musescore.org on May 11 2019 Released under Creative Commons Attribution-ShareAlike

More info »
LightCycler Software 4.0.book

LightCycler Software 4.0.book

LightCycler Software 4.0.book Seite 1 Mittwoch, 6. Oktober 2004 4:48 16         

More info »
CloudCompare v2.6.1   User manual

CloudCompare v2.6.1 User manual

CloudCompare Version 2.6.1 User manual

More info »
Corel Photo Album

Corel Photo Album

l b u m 6 ® Cor el UK Limited Cor el Corporation Sapphire Court 1600 Carling Ave. Bell Street Ottawa, ON Maidenhead Canada K1Z 8R7 Berkshire SL6 1BU United Kingdom U Created in CorelDRAW Graphics Suit...

More info »
Gutenberg Accessibility Audit Report

Gutenberg Accessibility Audit Report

Gutenberg Accessibility Audit Report

More info »