VIEWPORT TOOLS

VIEWPORT TOOLS

Win32 and 64, English

Andrzej Kalinowski
Set of commands for Autodesk® AutoCAD® to resize viewport, create a new one from model space, update its view, and generate its boundary.

General Usage Instructions

Command: RESIZEVIEWPORT

This function resizes the viewport to the size of the rectangle enclosed in two picked corners. If the viewport is clipped the program unclips it. 

Command: VIEWPORTFROMMODELSPACE

This function makes a viewport in paper space from drawn or selected shapes in Model Space. The shape can be preselected.
The program works only in the top view. In the popup dialog window, the user is asked to select the scale, layer, and layout. The last used layout is selected by default. 

Command: VIEWPORTBOUNDARY

This function generates in model space a boundary of any shape of the selected viewport in paper space.
The program works with clipped and not-clipped viewports of any shape (including viewports clipped with circles, splines, ellipses, or untypical shapes).
The boundary is made on a separate layer named "_VP_BORDER_TMP_". 

Command: VIEWPORTUPDATE

This function updates the displayed extent in the selected viewport according to the new location of the previously generated viewport boundary and moved in model space.
To update the viewport the user must generate a viewport outline first by the VIEWPORTBOUNDARYBLOCK function.

Command:   VIEWPORTBOUNDARYBLOCK

This function does the same as the VPB function, but the boundary is inserted as a block. This function allows only to have one instance of BoundaryBlock. If the user creates a new Block from another viewport - the old block from the previous viewport is deleted.

Command:   SCALEVIEWPORT

This function scales the viewport with its view. Standard SCALE command normally scales only the borders of the viewport. After scaling, the program will display the old and new scales in the command line.

Command:   VPOFF / VPON

These two commands turn all viewports in all layouts on or off.

 

Command aliases:

The application comes with the long command names listed above. To create your own short aliases for these commands, go to ACAD.PGP file or Menu Manage->Customization->Edit aliases->Edit Aliases. Command aliases used in video-example: VPB for VIEWPORTBOUNDARY, VPU for VIEWPORTUPDATE, VBB for VIEWPORTBOUNDARYBLOCK, VFM for VIEWPORTFROMMODELSPACE, RV for RESIZEVIEWPORT, SCV for SCALEVIEWPORT. 

Compatibility:

All AutoCAD versions and its vertical programs.

Screenshots

Commands

Ribbon/Toolbar Icon Command Command Description

RESIZEVIEWPORT

This function resizes viewport to the size of the rectangle enclosed in two picked corners. If the viewport is clipped the program unclips it.

VIEWPORTFROMMODELSPACE

This function makes viewport in paper space from drawn or selected shapes in Model Space. The shape can be preselected. The program works only in top-view. In the popup dialog window, the user is asked to select the scale, layer and layout. The last used layout is selected by default.

VIEWPORTUPDATE

This function updates displayed extent in selected viewport according to the new location of the previously generated viewport boundary and moved in model space. To update the viewport the user has to generate a viewport outline first by VIEWPORTBOUNDARYBLOCK function.

VIEWPORTBOUNDARY

This function generates in model space a boundary of any shape of the selected viewport in paper space. The program works with clipped and not clipped viewports of any shape (including viewports clipped with circles, splines, ellipses or untypical shapes). The boundary is made on a separate layer named "_VP_BORDER_TMP_".

VIEWPORTBOUNDARYBLOCK

This function does the same as the VPB function, but the boundary is inserted as a block. This function allows only to have one instance of BoundaryBlock. If the user creates a new Block from another viewport - the old block from the previous viewport is deleted.

SCALEVIEWPORT

This function scales viewport with its view. Standard SCALE command normally scales only borders of the viewport. After scaling program will display old and new scale in command line.

VPOFF

Turns all viewports in all layouts off.

VPON

Turns all viewports in all layouts on.

Installation/Uninstallation

The installer that ran when you downloaded this app/plug-in from the Autodesk App Store will start installing the app/plug-in. OR, simply double-click the downloaded installer to install the app/plugin. You may need to restart the Autodesk product to activate the app/plug-in. To uninstall this plug-in, exit the Autodesk product if you are currently running it, simply rerun the installer, and select the "Uninstall" button. OR, click Control Panel > Programs > Programs and Features (Windows 7/8.1/10/11) and uninstall as you would any other application from your system.

Additional Information

Known Issues

Contact

Company Name: Andrzej Kalinowski

Author/Company Information

Andrzej Kalinowski

Support Information

Support via Contact form on www.autolisps.blogpost.com

Version History

Version Number Version Description

6.0.0

added option to set Annotation Scale equal to Viewport Scale in VIEWPORTFROMMODELSPACE command

5.0.1

corrected dealing with viewports on the locked layers in the SCALEVIEWPORT command.

5.0.0

Added 2025 Support. Added VPOFF and VPON commands, added allow_accept for Select Layout section in VIEWPORTFROMMODELSPACE command.

4.0.3

Added 2025 Support.

4.0.2

Added 2024 support

4.0

Added 2023 support (No change in version number).

3.0.4

Updated to Autodesk® AutoCAD® 2022(No change in Version Number)

3.0.3

3.0.3 - 10.09.2020 - fixed bug with error: variable setting rejected: "CVPORT"

3.0.2

3.0.2 - 01.09.2020 - added SCALEVIEWPORT command.

3.01

28.07.2020 - fixed bug with unknown AECBOSMODE command

3.0.0

Initial release.
Go top