Autodesk AutoCAD Services & Support

Removing layer viewport overrides using VPLAYER

Issue

You want to know if there is a way, from the AutoCAD command line, to remove layer overrides from viewports.  Per-viewport layer overrides is a feature introduced in AutoCAD 2008 that allows you to apply layer property overrides for color, linetype, lineweight and plot style, and make objects on a layer display differently in different viewports without affecting the global layer properties. Typically, you remove viewport overrides using the Layer dialog or the right-click context menu on a viewport object, however there is no obvious way to perform this operation from the command line.

Solution

The VPLAYER command includes the hidden keyword option reMoveoverrides. You won't see this keyword in the list of options but if you enter M at the initial VPLAYER prompt, you'll get a sub-prompt of options to remove one or all types of layer property overrides. You can choose which layers these overrides should be removed from and in which viewports.

This example shows removing all the viewport overrides from all the layers in the current viewport:

This example shows removing only the color override from only Layer1 in all the viewports:


Support – Terms of Use
  • Did this page resolve your issue?
  • Translate This Page (Beta)

    Learn More about this translation beta.Page is machine translated. Learn More.

    Was this translation useful?

  • Document Information

    Published date: 2010-Apr-06
    ID: TS14946128

     

    Applies to:
    AutoCAD® 2011
    AutoCAD® 2010
    AutoCAD® 2009
    AutoCAD® 2008