United States Department of Agriculture
Natural Resources Conservation Service
New York Go to Accessibility Information
Skip to Page Content





Creating Viewport Locking and Unlocking Command Toolbar Buttons

These four commands were written by a user of Autodesk products, not Autodesk Inc. Therefore, the end user is responsible for any problems that may arise due to the installation and use of them.

These command toolbar buttons control the locking and unlocking of viewports in layouts.

Download the .zip file below containing bitmap images for the toolbar buttons. Extract its contents to the directory shown. The path shown may vary depending on the version of Land Desktop you are operating.

Extract the contents of this file to c:\program files\land desktop 3\support.

This file is a compressed .zip file. It requires Winzip or a similar program to decompress.

vportlocks (ZIP; 766 KB)

The Adobe Acrobat document below provides instructions for creating the toolbar buttons.

This document requires Adobe Reader.

Creating viewport lock and unlock command toolbar buttons (PDF; 23 KB)

As you create the toolbar buttons you will be copying and pasting the macro codes, names and descriptions provided below into the Land Desktop program.

Leave this Web site open in the background while you build the buttons so you will have easy access to the macro codes and their names and descriptions. You may also copy and paste the macro codes, names and descriptions into a .txt file or Word document, then copy and paste them from there. Copy and paste only the text following the name, description, and macro code.


Lock all viewports

Name:  Lock all viewports - no viewport selection is required

Description:  Locks all viewports in the layout - no viewport selection is required

Macro code:  ^C^Cmview;L;On;All;;

Button image bitmap file name: vportlockall.bmp


Unlock all viewports

Name: Unlock all viewports - no viewport selection is required

Description: Unlocks all viewports in the layout - no viewport selection is required

Macro code: ^C^Cmview;L;Off;All;;

Button image bitmap file name: vportunlockall.bmp


Lock one or more viewports

Name: Lock one or more viewports - viewport(s) selection is required

Description: Locks one or more viewports in the layout - you must select the viewport(s) to lock

Macro code: ^C^C-vports;L;on;

Button image bitmap file name: vportlockone.bmp


Unlock one or more viewports

Name: Unlock one or more viewports - viewport(s) selection is required

Description: Unlocks one or more viewports in the layout - you must select the viewport(s) to unlock

Macro code: ^C^C-vports;L;off;

Button image bitmap file name: vportunlockone.bmp


If you have a program setting or customization that you would like to share with other users via this Web site, you may contact Gary Vandawalker.


Contact Information

You may send comments regarding this Web site to:

State Conservation Engineer

Peter E. Wright
Syracuse, New York
Telephone: 315-477-6538

If you encounter any problems with files provided on this page, have questions, suggestions, or find a broken link, please contact Gary Vandawalker at 315-477-6546.


alt=""Back to Top

< Back to Program Settings and Customization - Custom Commands and Toolbar Buttons